Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347138
b: refs/heads/master
c: ecbcbc7
h: refs/heads/master
v: v3
  • Loading branch information
Sachin Kamat authored and Artem Bityutskiy committed Nov 15, 2012
1 parent 4744762 commit dc66b06
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: 0aa87b7563f138149429f35727b975ec25a494a6
refs/heads/master: ecbcbc7b75bb1b7596fca2d588d2f7539dc4e581
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 dc66b06

Please sign in to comment.