diff options
Diffstat (limited to 'drivers/mtd/chips/jedec.c')
-rw-r--r-- | drivers/mtd/chips/jedec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/chips/jedec.c b/drivers/mtd/chips/jedec.c index 2c3f019197c1..14e57b2bf842 100644 --- a/drivers/mtd/chips/jedec.c +++ b/drivers/mtd/chips/jedec.c | |||
@@ -116,11 +116,10 @@ static struct mtd_info *jedec_probe(struct map_info *map) | |||
116 | char Part[200]; | 116 | char Part[200]; |
117 | memset(&priv,0,sizeof(priv)); | 117 | memset(&priv,0,sizeof(priv)); |
118 | 118 | ||
119 | MTD = kmalloc(sizeof(struct mtd_info) + sizeof(struct jedec_private), GFP_KERNEL); | 119 | MTD = kzalloc(sizeof(struct mtd_info) + sizeof(struct jedec_private), GFP_KERNEL); |
120 | if (!MTD) | 120 | if (!MTD) |
121 | return NULL; | 121 | return NULL; |
122 | 122 | ||
123 | memset(MTD, 0, sizeof(struct mtd_info) + sizeof(struct jedec_private)); | ||
124 | priv = (struct jedec_private *)&MTD[1]; | 123 | priv = (struct jedec_private *)&MTD[1]; |
125 | 124 | ||
126 | my_bank_size = map->size; | 125 | my_bank_size = map->size; |