From: Dan Carpenter Date: Thu, 6 Jan 2011 14:05:36 +0000 (+0300) Subject: mtd: pxa3xx_nand: NULL dereference in pxa3xx_nand_probe X-Git-Tag: v2.6.37.1~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc43a25f4bdf3189f03a06f75943f3c0121c4e11;p=pandora-kernel.git mtd: pxa3xx_nand: NULL dereference in pxa3xx_nand_probe commit 52d039fdaa78c5a9f9bc2940ad58d7ed76b8336d upstream. "info->cmdset" gets dereferenced in __readid() so it needs to be initialized earlier in the function. This bug was introduced in 18c81b1828f8 "mtd: pxa3xx_nand: remove the flash info in driver structure". Reported-and-tested-by: Sven Neumann Signed-off-by: Dan Carpenter Signed-off-by: David Woodhouse Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed