diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-02 04:55:40 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-21 17:45:04 +0100 |
commit | 6466f3d193a99426db067855345e763de2160f1c (patch) | |
tree | b4395b7f3e67021b8196d88c6a08dfee7a6365f6 /security/smack | |
parent | selinux: expand superblock_doinit() calls (diff) | |
download | linux-6466f3d193a99426db067855345e763de2160f1c.tar.xz linux-6466f3d193a99426db067855345e763de2160f1c.zip |
smack: make smack_parse_opts_str() clean up on failure
fixes e.g. a btrfs leak...
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smack_lsm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 81fb4c1631e9..73e41797960e 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -735,6 +735,7 @@ out_err: kfree(fshat); kfree(fsroot); kfree(fstransmute); + security_free_mnt_opts(opts); return rc; } |