X-Git-Url: http://bbs.cooldavid.org/git/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fphysmap_of.c;h=bbdd219419051d43799b3108a7269b27f6054677;hb=0ae28a35bcb7984838acbf28bfba9c030f8b74f0;hp=101ee6ead05c16af55f34434df390ba859bcd27b;hpb=b57f95a38233a2e73b679bea4a5453a1cc2a1cc9;p=net-next-2.6.git diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index 101ee6ead05..bbdd2194190 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@ -218,7 +218,7 @@ static int __devinit of_flash_probe(struct of_device *dev, dev_set_drvdata(&dev->dev, info); - mtd_list = kzalloc(sizeof(struct mtd_info) * count, GFP_KERNEL); + mtd_list = kzalloc(sizeof(*mtd_list) * count, GFP_KERNEL); if (!mtd_list) goto err_flash_remove;