There are hidden gotos in the ceph_decode_* macros. We need to set the
"err" variable on these error paths otherwise we end up returning
ERR_PTR(0) which is NULL. It causes NULL dereferences in the callers.
Fixes: 6f428df47dae ("libceph: pg_upmap[_items] infrastructure") Signed-off-by: Dan Carpenter <[email protected]>
[[email protected]: similar bug in osdmap_decode(), changelog tweak] Signed-off-by: Ilya Dryomov <[email protected]>