projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2160054
)
UBI: fix freeing ubi->vtbl while unloading
author
Vinit Agnihotri
<vinit.agnihotri@gmail.com>
Fri, 15 Jun 2007 10:01:22 +0000
(15:31 +0530)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:54:15 +0000
(16:54 +0300)
ubi->vtbl is allocated using vmalloc() in vtbl.c empty_create_lvol(),
but it is freed in build.c with kfree()
Signed-off-by: Vinit Agnihotri <vinit.agnihotri@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/build.c
b/drivers/mtd/ubi/build.c
index
054a88d
..
08ca214
100644
(file)
--- a/
drivers/mtd/ubi/build.c
+++ b/
drivers/mtd/ubi/build.c
@@
-369,7
+369,7
@@
static int attach_by_scanning(struct ubi_device *ubi)
out_wl:
ubi_wl_close(ubi);
out_vtbl:
-
k
free(ubi->vtbl);
+
v
free(ubi->vtbl);
out_si:
ubi_scan_destroy_si(si);
return err;
@@
-629,7
+629,7
@@
static int attach_mtd_dev(const char *mtd_dev, int vid_hdr_offset,
out_detach:
ubi_eba_close(ubi);
ubi_wl_close(ubi);
-
k
free(ubi->vtbl);
+
v
free(ubi->vtbl);
out_free:
kfree(ubi);
out_mtd: