summaryrefslogtreecommitdiff
path: root/drivers/mtd/chips/map_absent.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/chips/map_absent.c')
-rw-r--r--drivers/mtd/chips/map_absent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/chips/map_absent.c b/drivers/mtd/chips/map_absent.c
index fc68557f49c0..6a9bd84a6def 100644
--- a/drivers/mtd/chips/map_absent.c
+++ b/drivers/mtd/chips/map_absent.c
@@ -46,7 +46,7 @@ static struct mtd_info *map_absent_probe(struct map_info *map)
{
struct mtd_info *mtd;
- mtd = kzalloc(sizeof(*mtd), GFP_KERNEL);
+ mtd = kzalloc_obj(*mtd, GFP_KERNEL);
if (!mtd) {
return NULL;
}