[PATCH] MTD: nandsim: BUG: Fail if overridesize is too big
Artem Bityutskiy
artem.bityutskiy at linux.intel.com
Tue Sep 25 10:05:31 EDT 2012
On Wed, 2012-09-12 at 14:26 +0200, Richard Genoud wrote:
> 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.
>
> Signed-off-by: Richard Genoud <richard.genoud at gmail.com>
Pushed to l2-mtd.git, CCed -stable.
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120925/54c9999c/attachment.sig>
More information about the linux-mtd
mailing list