OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.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
|
history
diff --git
a/fs/ceph/osdmap.c
b/fs/ceph/osdmap.c
index
50ce64e
..
277f8b3
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);