diff options
Diffstat (limited to 'drivers/mtd/maps/ixp2000.c')
-rw-r--r-- | drivers/mtd/maps/ixp2000.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/maps/ixp2000.c b/drivers/mtd/maps/ixp2000.c index 1bdf0ee6d0b6..9639d83a9d6c 100644 --- a/drivers/mtd/maps/ixp2000.c +++ b/drivers/mtd/maps/ixp2000.c | |||
@@ -165,12 +165,11 @@ static int ixp2000_flash_probe(struct platform_device *dev) | |||
165 | return -EIO; | 165 | return -EIO; |
166 | } | 166 | } |
167 | 167 | ||
168 | info = kmalloc(sizeof(struct ixp2000_flash_info), GFP_KERNEL); | 168 | info = kzalloc(sizeof(struct ixp2000_flash_info), GFP_KERNEL); |
169 | if(!info) { | 169 | if(!info) { |
170 | err = -ENOMEM; | 170 | err = -ENOMEM; |
171 | goto Error; | 171 | goto Error; |
172 | } | 172 | } |
173 | memset(info, 0, sizeof(struct ixp2000_flash_info)); | ||
174 | 173 | ||
175 | platform_set_drvdata(dev, info); | 174 | platform_set_drvdata(dev, info); |
176 | 175 | ||