Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27768
b: refs/heads/master
c: 4f678a5
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and David Woodhouse committed May 13, 2006
1 parent 31c4e50 commit 87a8089
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: e0c7d7675331140e5186d2d1a0efce1d3877d379
refs/heads/master: 4f678a58d335291ce9213c049bbe16e6d24487ed
8 changes: 6 additions & 2 deletions trunk/drivers/mtd/devices/phram.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,16 @@ static int phram_setup(const char *val, struct kernel_param *kp)
return 0;

ret = parse_num32(&start, token[1]);
if (ret)
if (ret) {
kfree(name);
parse_err("illegal start address\n");
}

ret = parse_num32(&len, token[2]);
if (ret)
if (ret) {
kfree(name);
parse_err("illegal device length\n");
}

register_device(name, start, len);

Expand Down

0 comments on commit 87a8089

Please sign in to comment.