Subject : kernel NULL pointer dereference in pxa3xx_nand_probe Submitter : Sven Neumann <s.neumann@raumfeld.com> Date : 2011-01-05 11:43 Message-ID : 1294227801.3996.62.camel@sven References : http://marc.info/?l=linux-kernel&m=129422903703756&w=2 This entry is being used for tracking a regression from 2.6.36. Please don't close it until the problem is fixed in the mainline.
This is fixed in mainline and the patch has been submitted for inclusion in 2.6.37 (I haven't verified if it did actually end up there): commit 52d039fdaa78c5a9f9bc2940ad58d7ed76b8336d Author: Dan Carpenter <error27@gmail.com> Date: Thu Jan 6 17:05:36 2011 +0300 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 <s.neumann@raumfeld.com> Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>