mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
libceph: fix crush_decode() for older maps
Older (shorter) CRUSH maps too need to be finalized.
Fixes: 66a0e2d579 ("crush: remove mutable part of CRUSH map")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
c1ae3cfa0e
commit
9afd30dbc8
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue