From 526789fc532a445975b60885a65d3cea5bfa6391 Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Sun, 11 Jan 2015 22:07:20 +0900 Subject: [PATCH] mtd: nand: ams-delta: fix overwritten mtd_info->owner in initialization 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 Cc: Jonathan McDowell Cc: David Woodhouse Signed-off-by: Brian Norris --- Reading git-format-patch failed