OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eee9f1
)
UBI: mtd/ubi/vtbl.c: fix memory leak
author
Adrian Bunk
<bunk@kernel.org>
Mon, 3 Mar 2008 18:07:52 +0000
(20:07 +0200)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Tue, 4 Mar 2008 09:03:09 +0000
(11:03 +0200)
This patch fixes a memory leak introduced by commit
4ccf8cffa963c7b5bdc6d455ea9417084ee49aa8
and spotted by the Coverity
checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/vtbl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/vtbl.c
b/drivers/mtd/ubi/vtbl.c
index
56fc3fb
..
af36b12
100644
(file)
--- a/
drivers/mtd/ubi/vtbl.c
+++ b/
drivers/mtd/ubi/vtbl.c
@@
-519,6
+519,7
@@
static int init_volumes(struct ubi_device *ubi, const struct ubi_scan_info *si,
if (ubi->autoresize_vol_id != -1) {
ubi_err("more then one auto-resize volume (%d "
"and %d)", ubi->autoresize_vol_id, i);
+ kfree(vol);
return -EINVAL;
}