summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-07-08 14:49:38 +0200
committerSage Weil <sage@newdream.net>2010-07-08 08:03:24 -0700
commitb0bbb0be8f7fbf6d366b359e034c78a96c4e274d (patch)
treecc3f2c6c33a49eae3880165def5a13e1af23b0ed /fs
parent22b1de06c9fe128ca3de72560c3e8c2cabf2927a (diff)
downloadlinux-b0bbb0be8f7fbf6d366b359e034c78a96c4e274d.tar.bz2
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/osdmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/osdmap.c b/fs/ceph/osdmap.c
index 50ce64ebd330..277f8b339577 100644
--- 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);