[PATCH] kfree cleanup: security
This is the security/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in security/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: James Morris <jmorris@namei.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
b2325fe1b7
commit
a7f988ba30
@@ -115,8 +115,7 @@ struct key_user *key_user_lookup(uid_t uid)
|
||||
found:
|
||||
atomic_inc(&user->usage);
|
||||
spin_unlock(&key_user_lock);
|
||||
if (candidate)
|
||||
kfree(candidate);
|
||||
kfree(candidate);
|
||||
out:
|
||||
return user;
|
||||
|
||||
|
Reference in New Issue
Block a user