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

Commit cebc5be6 authored by Sage Weil's avatar Sage Weil
Browse files

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: default avatarSage Weil <sage@newdream.net>
parent ae32be31
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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? */