summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorSachin Kamat2012-09-25 11:57:13 +0200
committerArtem Bityutskiy2012-11-15 14:37:46 +0100
commitecbcbc7b75bb1b7596fca2d588d2f7539dc4e581 (patch)
tree09bd4bbff8702d975a3e4d39a05fd870198a5eb5 /drivers/mtd/nand
parentmtd: m25p80: add support for the windbond w25q256 chip (diff)
downloadkernel-qcow2-linux-ecbcbc7b75bb1b7596fca2d588d2f7539dc4e581.tar.gz
kernel-qcow2-linux-ecbcbc7b75bb1b7596fca2d588d2f7539dc4e581.tar.xz
kernel-qcow2-linux-ecbcbc7b75bb1b7596fca2d588d2f7539dc4e581.zip
mtd: ofpart: Fix incorrect NULL check in parse_ofoldpart_partitions()
The pointer returned by kzalloc should be tested for NULL to avoid potential NULL pointer dereference later. Incorrect pointer was being tested for NULL. Bug introduced by commit fbcf62a3 (mtd: physmap_of: move parse_obsolete_partitions to become separate parser). This patch fixes this bug. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: stable@vger.kernel.org [3.2+] Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/nand')
0 files changed, 0 insertions, 0 deletions