Skip to content

Commit

Permalink
smack: make smack_parse_opts_str() clean up on failure
Browse files Browse the repository at this point in the history
fixes e.g. a btrfs leak...

Reviewed-by: David Howells <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Dec 21, 2018
1 parent 17f3b55 commit 6466f3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6466f3d

Please sign in to comment.