From: Ilya Dryomov Date: Tue, 28 Feb 2017 17:53:53 +0000 (+0100) Subject: libceph: fix crush_decode() for older maps X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9afd30dbc82a9dbea4101aba57beb2a2a7e1b8d5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git libceph: fix crush_decode() for older maps Older (shorter) CRUSH maps too need to be finalized. Fixes: 66a0e2d579db ("crush: remove mutable part of CRUSH map") Signed-off-by: Ilya Dryomov --- diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c index 6824c0ec8373..cc22dd282a3e 100644 --- a/net/ceph/osdmap.c +++ b/net/ceph/osdmap.c @@ -390,9 +390,8 @@ static struct crush_map *crush_decode(void *pbyval, void *end) dout("crush decode tunable chooseleaf_stable = %d\n", c->chooseleaf_stable); - crush_finalize(c); - done: + crush_finalize(c); dout("crush_decode success\n"); return c;