Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9afd30db authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

libceph: fix crush_decode() for older maps



Older (shorter) CRUSH maps too need to be finalized.

Fixes: 66a0e2d5 ("crush: remove mutable part of CRUSH map")
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent c1ae3cfa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;