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>
This commit is contained in:
Al Viro 2018-12-01 22:55:40 -05:00
parent 17f3b556a3
commit 6466f3d193

View File

@ -735,6 +735,7 @@ static int smack_parse_opts_str(char *options,
kfree(fshat);
kfree(fsroot);
kfree(fstransmute);
security_free_mnt_opts(opts);
return rc;
}