Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360377
b: refs/heads/master
c: eb82038
h: refs/heads/master
i:
  360375: ad51e21
v: v3
  • Loading branch information
Ezequiel Garcia authored and Artem Bityutskiy committed Feb 12, 2013
1 parent d3d121d commit c05a861
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84cfbbb85a98c8c89407f108da9d102e5dfe2ae5
refs/heads/master: eb82038f97f93c5f0ff274fb98a9fff741dc2f5e
8 changes: 3 additions & 5 deletions trunk/drivers/mtd/maps/physmap_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ static int of_flash_remove(struct platform_device *dev)
kfree(info->list[i].res);
}
}

kfree(info);

return 0;
}

Expand Down Expand Up @@ -199,8 +196,9 @@ static int of_flash_probe(struct platform_device *dev)
map_indirect = of_property_read_bool(dp, "no-unaligned-direct-access");

err = -ENOMEM;
info = kzalloc(sizeof(struct of_flash) +
sizeof(struct of_flash_list) * count, GFP_KERNEL);
info = devm_kzalloc(&dev->dev,
sizeof(struct of_flash) +
sizeof(struct of_flash_list) * count, GFP_KERNEL);
if (!info)
goto err_flash_remove;

Expand Down

0 comments on commit c05a861

Please sign in to comment.