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.38-rc1~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52d039fdaa78c5a9f9bc2940ad58d7ed76b8336d;p=pandora-kernel.git mtd: pxa3xx_nand: NULL dereference in pxa3xx_nand_probe "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". Cc: stable@kernel.org [2.6.37+] Reported-and-tested-by: Sven Neumann Signed-off-by: Dan Carpenter Signed-off-by: David Woodhouse --- Reading git-diff-tree failed