summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/ams-delta.c
diff options
context:
space:
mode:
authorRichard Genoud2012-09-12 14:26:26 +0200
committerDavid Woodhouse2012-09-29 16:54:12 +0200
commitbb0a13a13411c4ce24c48c8ff3cdf7b48d237240 (patch)
tree595cbf4572ee949f58ccfc0337fb43f78101f49d /drivers/mtd/nand/ams-delta.c
parentmtd: docg4: ecc.read_page() returns 0 on uncorrectable errors (diff)
downloadkernel-qcow2-linux-bb0a13a13411c4ce24c48c8ff3cdf7b48d237240.tar.gz
kernel-qcow2-linux-bb0a13a13411c4ce24c48c8ff3cdf7b48d237240.tar.xz
kernel-qcow2-linux-bb0a13a13411c4ce24c48c8ff3cdf7b48d237240.zip
mtd: nandsim: bugfix: fail if overridesize is too big
If override size is too big, the module was actually loaded instead of failing, because retval was not set. This lead to memory corruption with the use of the freed structs nandsim and nand_chip. Cc: stable@vger.kernel.org Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/ams-delta.c')
0 files changed, 0 insertions, 0 deletions