Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335981
b: refs/heads/master
c: 5a6ea4a
h: refs/heads/master
i:
  335979: c516b48
v: v3
  • Loading branch information
Sachin Kamat authored and David Woodhouse committed Oct 10, 2012
1 parent 3636da6 commit 2907d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: bc86cf7af2ebda88056538e8edff852ee627f76a
refs/heads/master: 5a6ea4af0907f995dc06df21a9c9ef764c7cd3bc
2 changes: 1 addition & 1 deletion trunk/drivers/mtd/ofpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int parse_ofoldpart_partitions(struct mtd_info *master,
nr_parts = plen / sizeof(part[0]);

*pparts = kzalloc(nr_parts * sizeof(*(*pparts)), GFP_KERNEL);
if (!pparts)
if (!*pparts)
return -ENOMEM;

names = of_get_property(dp, "partition-names", &plen);
Expand Down

0 comments on commit 2907d18

Please sign in to comment.