[PATCH 6.1 550/568] libceph: fix potential use-after-free in have_mon_and_osd_map()