git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubi: fastmap: Use kmem_cache_free to deallocate memory
[sfrench/cifs-2.6.git]
/
drivers
/
mtd
/
ubi
/
fastmap.c
diff --git
a/drivers/mtd/ubi/fastmap.c
b/drivers/mtd/ubi/fastmap.c
index 5a832bc79b1be0032735d2b16ac6add4eb54d872..717db749808ab4bbdb4d94776c66c129096dd6ac 100644
(file)
--- a/
drivers/mtd/ubi/fastmap.c
+++ b/
drivers/mtd/ubi/fastmap.c
@@
-1063,7
+1063,7
@@
int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai,
e = kmem_cache_alloc(ubi_wl_entry_slab, GFP_KERNEL);
if (!e) {
while (i--)
- k
free(
fm->e[i]);
+ k
mem_cache_free(ubi_wl_entry_slab,
fm->e[i]);
ret = -ENOMEM;
goto free_hdr;