Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242756
b: refs/heads/master
c: f17f12c
h: refs/heads/master
v: v3
  • Loading branch information
Mathias Krause authored and David Woodhouse committed Mar 11, 2011
1 parent 3514e01 commit 887b97e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07be303d22ac7e067b8a7172a4043ebe32b74b33
refs/heads/master: f17f12ce9dd6ec0a8e1f415ecdbaebfce0207464
3 changes: 3 additions & 0 deletions trunk/drivers/mtd/devices/phram.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ static void unregister_devices(void)
list_for_each_entry_safe(this, safe, &phram_list, list) {
del_mtd_device(&this->mtd);
iounmap(this->mtd.priv);
kfree(this->mtd.name);
kfree(this);
}
}
Expand Down Expand Up @@ -275,6 +276,8 @@ static int phram_setup(const char *val, struct kernel_param *kp)
ret = register_device(name, start, len);
if (!ret)
pr_info("%s device: %#x at %#x\n", name, len, start);
else
kfree(name);

return ret;
}
Expand Down

0 comments on commit 887b97e

Please sign in to comment.