+ remove-redundant-null-checks-before-free-in-kernel.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Remove redundant NULL checks before [kv]free - in kernel/

has been added to the -mm tree.  Its filename is

     remove-redundant-null-checks-before-free-in-kernel.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Jesper Juhl <jesper.juhl@xxxxxxxxx>

Remove redundant kfree NULL checks from kernel/

Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/auditsc.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff -puN kernel/auditsc.c~remove-redundant-null-checks-before-free-in-kernel kernel/auditsc.c
--- devel/kernel/auditsc.c~remove-redundant-null-checks-before-free-in-kernel	2006-04-17 21:28:16.000000000 -0700
+++ devel-akpm/kernel/auditsc.c	2006-04-17 21:28:16.000000000 -0700
@@ -530,8 +530,7 @@ static void audit_log_task_context(struc
 	return;
 
 error_path:
-	if (ctx)
-		kfree(ctx);
+	kfree(ctx);
 	audit_panic("error in audit_log_task_context");
 	return;
 }
@@ -965,8 +964,7 @@ void audit_inode_context(int idx, const 
 	goto ret;
 
 error_path:
-	if (ctx)
-		kfree(ctx);
+	kfree(ctx);
 	audit_panic("error in audit_inode_context");
 ret:
 	return;
_

Patches currently in -mm which might be from jesper.juhl@xxxxxxxxx are

git-mtd.patch
small-whitespace-cleanup-for-qlogic-driver.patch
reduce-nr-of-ptr-derefs-in-fs-jffs2-summaryc.patch
voyager-no-need-to-define-bits_per_byte-when-its-already-in-typesh.patch
fix-potential-null-pointer-deref-in-gen_init_cpio.patch
debug-shared-irqs.patch
remove-redundant-null-checks-before-free-in-fs.patch
remove-redundant-null-checks-before-free-in-net.patch
remove-redundant-null-checks-before-free-in-arch.patch
remove-redundant-null-checks-before-free-in-kernel.patch
remove-redundant-null-checks-before-free-in-drivers.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux