[PATCH] mtd: nand: ams-delta: fix overwritten mtd_info->owner in initialization

Brian Norris computersforpeace at gmail.com
Thu Jan 15 19:33:47 PST 2015


On Sun, Jan 11, 2015 at 10:07:20PM +0900, Akinobu Mita wrote:
> In initialization routine, mtd_info->owner is overwritten by memset()
> just after being initialized.  This can be fixed by moving memset() calls
> to just before setting mtd_info->owner.  But the memory region is allocated
> by kmalloc, so we can fix it by using kzalloc instead of kmalloc.
> 
> Signed-off-by: Akinobu Mita <akinobu.mita at gmail.com>
> Cc: Jonathan McDowell <noodles at earth.li>
> Cc: David Woodhouse <dwmw2 at infradead.org>
> Cc: Brian Norris <computersforpeace at gmail.com>
> Cc: linux-mtd at lists.infradead.org

Pushed to l2-mtd.git. Thanks!

Brian



More information about the linux-mtd mailing list