[PATCH] Fix incorrect structure freeing in omap_nand_remove()

2011-04-29 Thread green
From: Oleg Drokin Attempt to kfree(&info->mtd) is a bad idea since it's a different substructure in the middle of a properly allocated struct omap_nand_info. I guess nobody tripped it before since nobody really removes NAND flash and nobody unloads the module either. Signed-off-by: Oleg Drokin

[PATCH] Fix incorrect structure freeing in omap_nand_remove()

2011-03-10 Thread green
From: Oleg Drokin Attempt to kfree(&info->mtd) is a bad idea since it's a different substructure in the middle of a properly allocated struct omap_nand_info. I guess nobody tripped it before since nobody really removes NAND flash and nobody unloads the module either. Signed-off-by: Oleg Drokin