forked from luck/tmp_suning_uos_patched
ceph: add kfree() to error path
We leak a "pi" on this error path. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
22b1de06c9
commit
b0bbb0be8f
@ -568,6 +568,7 @@ struct ceph_osdmap *osdmap_decode(void **p, void *end)
|
|||||||
if (ev > CEPH_PG_POOL_VERSION) {
|
if (ev > CEPH_PG_POOL_VERSION) {
|
||||||
pr_warning("got unknown v %d > %d of ceph_pg_pool\n",
|
pr_warning("got unknown v %d > %d of ceph_pg_pool\n",
|
||||||
ev, CEPH_PG_POOL_VERSION);
|
ev, CEPH_PG_POOL_VERSION);
|
||||||
|
kfree(pi);
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
__decode_pool(p, pi);
|
__decode_pool(p, pi);
|
||||||
|
Loading…
Reference in New Issue
Block a user