| Submitter | Julia Lawall |
|---|---|
| Date | Aug. 19, 2012, 8:44 a.m. |
| Message ID | <1345365870-29831-14-git-send-email-Julia.Lawall@lip6.fr> |
| Download | mbox | patch |
| Permalink | /patch/178549/ |
| State | New |
| Headers | show |
Comments
On Sun, 2012-08-19 at 10:44 +0200, Julia Lawall wrote: > From: Julia Lawall <Julia.Lawall@lip6.fr> > > Initialize return variable before exiting on an error path. Pushed to linux-ubi.git, thanks!
Patch
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 7b6b5f9..afe9075 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -1159,8 +1159,10 @@ static int __init ubi_init(void) ubi_wl_entry_slab = kmem_cache_create("ubi_wl_entry_slab", sizeof(struct ubi_wl_entry), 0, 0, NULL); - if (!ubi_wl_entry_slab) + if (!ubi_wl_entry_slab) { + err = -ENOMEM; goto out_dev_unreg; + } err = ubi_debugfs_init(); if (err)