| Submitter | Julia Lawall |
|---|---|
| Date | July 27, 2009, 4:13 p.m. |
| Message ID | <Pine.LNX.4.64.0907271812540.2682@ask.diku.dk> |
| Download | mbox | patch |
| Permalink | /patch/30274/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index 39d357b..2cc0b0d 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@ -215,7 +215,7 @@ static int __devinit of_flash_probe(struct of_device *dev, goto err_out; mtd_list = kzalloc(sizeof(struct mtd_info) * count, GFP_KERNEL); - if (!info) + if (!mtd_list) goto err_out; dev_set_drvdata(&dev->dev, info);