projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b1de0
)
ceph: add kfree() to error path
author
Dan Carpenter
<error27@gmail.com>
Thu, 8 Jul 2010 12:49:38 +0000
(14:49 +0200)
committer
Sage Weil
<sage@newdream.net>
Thu, 8 Jul 2010 15:03:24 +0000
(08:03 -0700)
We leak a "pi" on this error path.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/osdmap.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/osdmap.c
b/fs/ceph/osdmap.c
index 50ce64ebd3301eb24cf358ca7d6c1cdb6c0fe444..277f8b33957757ef506f6ac18816699b6b8156da 100644
(file)
--- a/
fs/ceph/osdmap.c
+++ b/
fs/ceph/osdmap.c
@@
-568,6
+568,7
@@
struct ceph_osdmap *osdmap_decode(void **p, void *end)
if (ev > CEPH_PG_POOL_VERSION) {
pr_warning("got unknown v %d > %d of ceph_pg_pool\n",
ev, CEPH_PG_POOL_VERSION);
+ kfree(pi);
goto bad;
}
__decode_pool(p, pi);