]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: pxa3xx_nand: NULL dereference in pxa3xx_nand_probe
authorDan Carpenter <error27@gmail.com>
Thu, 6 Jan 2011 14:05:36 +0000 (17:05 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 6 Jan 2011 15:48:59 +0000 (15:48 +0000)
commitc0a9b6e2df4511e3f40657941a5380da0d96f981
tree7cd507681b1e2de763ddbbb5591a147a9ceb5391
parenta17cf81664b1da85a324327b1693a538916e04b5
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
0ffb3a3308ba "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>
drivers/mtd/nand/pxa3xx_nand.c