| Submitter | Julia Lawall |
|---|---|
| Date | Dec. 29, 2009, 7:15 p.m. |
| Message ID | <Pine.LNX.4.64.0912292015001.4001@ask.diku.dk> |
| Download | mbox | patch |
| Permalink | /patch/41888/ |
| State | New |
| Headers | show |
Comments
Patch
diff -u -p a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@ -217,7 +217,7 @@ static int __devinit of_flash_probe(stru 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;