tmp_suning_uos_patched/security/smack
Dan Carpenter 5430209497 Smack: freeing an error pointer in smk_write_revoke_subj()
This code used to rely on the fact that kfree(NULL) was a no-op, but
then we changed smk_parse_smack() to return error pointers on failure
instead of NULL.  Calling kfree() on an error pointer will oops.

I have re-arranged things a bit so that we only free things if they
have been allocated.

Fixes: e774ad683f ('smack: pass error code through pointers')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
2015-06-12 11:59:11 -07:00
..
Kconfig Smack: secmark support for netfilter 2015-01-20 16:34:25 -08:00
Makefile Smack: Repair netfilter dependency 2015-01-23 10:08:19 -08:00
smack_access.c Smack: allow multiple labels in onlycap 2015-06-02 11:53:42 -07:00
smack_lsm.c smack: pass error code through pointers 2015-05-15 08:36:03 -07:00
smack_netfilter.c netfilter: Make nf_hookfn use nf_hook_state. 2015-04-04 12:31:38 -04:00
smack.h Smack: allow multiple labels in onlycap 2015-06-02 11:53:42 -07:00
smackfs.c Smack: freeing an error pointer in smk_write_revoke_subj() 2015-06-12 11:59:11 -07:00