mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ceph: fix crush map update decoding
If the incremental osdmap has a new crush map, advance the position after decoding so that we can parse the rest of the osdmap properly. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
ae32be3134
commit
cebc5be6b6
1 changed files with 1 additions and 0 deletions
|
@ -707,6 +707,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
|
|||
newcrush = crush_decode(*p, min(*p+len, end));
|
||||
if (IS_ERR(newcrush))
|
||||
return ERR_CAST(newcrush);
|
||||
*p += len;
|
||||
}
|
||||
|
||||
/* new flags? */
|
||||
|
|
Loading…
Reference in a new issue