projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17f3b55
)
smack: make smack_parse_opts_str() clean up on failure
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 2 Dec 2018 03:55:40 +0000
(22:55 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 21 Dec 2018 16:45:04 +0000
(11:45 -0500)
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
patch
|
blob
|
history
diff --git
a/security/smack/smack_lsm.c
b/security/smack/smack_lsm.c
index
81fb4c1
..
73e4179
100644
(file)
--- 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;
}