Commit 6466f3d1 authored by Al Viro's avatar Al Viro

smack: make smack_parse_opts_str() clean up on failure

fixes e.g. a btrfs leak...
Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 17f3b556
...@@ -735,6 +735,7 @@ static int smack_parse_opts_str(char *options, ...@@ -735,6 +735,7 @@ static int smack_parse_opts_str(char *options,
kfree(fshat); kfree(fshat);
kfree(fsroot); kfree(fsroot);
kfree(fstransmute); kfree(fstransmute);
security_free_mnt_opts(opts);
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment