From: Jesper Juhl Date: Wed, 19 Apr 2006 05:21:54 +0000 (-0700) Subject: [PATCH] Fix potential NULL pointer deref in gen_init_cpio X-Git-Tag: v2.6.17-rc3~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa1e816fc92215f94bdfd90107baae8fdc2440d1;p=pandora-kernel.git [PATCH] Fix potential NULL pointer deref in gen_init_cpio Fix potential NULL pointer deref in gen_init_cpio.c spotted by coverity checker. This fixes coverity bug #86 Without this patch we risk dereferencing a NULL `type' in the "if ('\n' == *type) {" line. Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed