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

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

ceph: fix osdmap decoding when pools include (removed) snaps



Add missing pointer dereference (p is a void **).

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 195d3ce2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -529,8 +529,8 @@ struct ceph_osdmap *osdmap_decode(void **p, void *end)
		ceph_decode_copy(p, &pi->v, sizeof(pi->v));
		__insert_pg_pool(&map->pg_pools, pi);
		calc_pg_masks(pi);
		p += le32_to_cpu(pi->v.num_snaps) * sizeof(u64);
		p += le32_to_cpu(pi->v.num_removed_snap_intervals)
		*p += le32_to_cpu(pi->v.num_snaps) * sizeof(u64);
		*p += le32_to_cpu(pi->v.num_removed_snap_intervals)
			* sizeof(u64) * 2;
	}
	ceph_decode_32_safe(p, end, map->pool_max, bad);