[PATCH 1/2] mtd/nand/omap2: fix omap_nand_remove segfault

Artem Bityutskiy artem.bityutskiy at linux.intel.com
Fri Aug 31 07:57:35 EDT 2012


On Fri, 2012-08-31 at 13:35 +0200, Andreas Bießmann wrote:
> Do not kfree() the mtd_info, it is handled in the mtd subsystem and already
> freed by nand_release(). Instead kfree() the struct omap_nand_info allocated in
> omap_nand_probe which was not kfree()ed before.
> 
> This patch fixes following error when unloading the omap2 module:

Added "Cc: stable at vger.kernel.org" to both patches and pushed to
l2-mtd.git, thanks!

-- 
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/20120831/c0ac136e/attachment.sig>


More information about the linux-mtd mailing list