smack: make smack_parse_opts_str() clean up on failure
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 2 Dec 2018 03:55:40 +0000 (22:55 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 Dec 2018 16:45:04 +0000 (11:45 -0500)
commit6466f3d193a99426db067855345e763de2160f1c
treeb4395b7f3e67021b8196d88c6a08dfee7a6365f6
parent17f3b556a3e3c9227549c3e7762c5c27a48e5c59
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>
security/smack/smack_lsm.c