projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9534f71
)
SELinux: remove redundant pointer checks before calling kfree()
author
Paul Moore
<paul.moore@hp.com>
Wed, 1 Aug 2007 15:12:58 +0000
(11:12 -0400)
committer
James Morris
<jmorris@namei.org>
Thu, 2 Aug 2007 15:52:23 +0000
(11:52 -0400)
We don't need to check for NULL pointers before calling kfree().
Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/hooks.c
patch
|
blob
|
blame
|
history
diff --git
a/security/selinux/hooks.c
b/security/selinux/hooks.c
index 0fac6829c63a7815016f0489c83db5419b990c0a..6237933f7d82c3454c4409a00a1aa779ef5ceee3 100644
(file)
--- a/
security/selinux/hooks.c
+++ b/
security/selinux/hooks.c
@@
-4658,8
+4658,7
@@
static int selinux_secid_to_secctx(u32 secid, char **secdata, u32 *seclen)
static void selinux_release_secctx(char *secdata, u32 seclen)
{
- if (secdata)
- kfree(secdata);
+ kfree(secdata);
}
#ifdef CONFIG_KEYS