Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

SELinux: remove redundant pointer checks before calling kfree()

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>

authored by

Paul Moore and committed by
James Morris
088999e9 9534f71c

+1 -2
+1 -2
security/selinux/hooks.c
··· 4658 4658 4659 4659 static void selinux_release_secctx(char *secdata, u32 seclen) 4660 4660 { 4661 - if (secdata) 4662 - kfree(secdata); 4661 + kfree(secdata); 4663 4662 } 4664 4663 4665 4664 #ifdef CONFIG_KEYS