From: Andrew Morton Date: Fri, 23 Jun 2006 09:05:31 +0000 (-0700) Subject: [PATCH] jbd: avoid kfree(NULL) X-Git-Tag: v2.6.18-rc1~1081^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=304c4c841a31c780a45d65e389b07706babf5d36;p=pandora-kernel.git [PATCH] jbd: avoid kfree(NULL) There are a couple of places where JBD has to check to see whether an unneeded memory allocation was performed. Usually it _was_ needed, so we end up calling kfree(NULL). We can micro-optimise that by checking the pointer before calling kfree(). Thanks to Steven Rostedt for identifying this. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed