mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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 <[email protected]> Acked-by: James Morris <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b2325fe1b7
commit
a7f988ba30
2 changed files with 7 additions and 8 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue