]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: return after finishing on unsupported mirror mode 70592/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 7 Jul 2026 02:01:05 +0000 (19:01 -0700)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 27 Jul 2026 18:08:59 +0000 (20:08 +0200)
commit750c1147b061e6491b2d75cda07289166b4bce69
tree10f79b11d3fa3a5fe5f29d10b375b35101fcb0cb
parent2d5e0bb24629bd3f4c40c7ba98b9cce1bd12180a
rbd-mirror: return after finishing on unsupported mirror mode

The mirror-mode switch default in handle_get_mirror_info() calls
finish(-EOPNOTSUPP), which deletes this, then breaks and falls
through to the common code, dereferencing the null *m_state_builder and
freeing the request a second time.

Fixes: https://tracker.ceph.com/issues/78043
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
(cherry picked from commit 9759952725a8bdfba6eab10979678dce90cc088d)
src/tools/rbd_mirror/image_replayer/PrepareLocalImageRequest.cc