]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: fix rbd_open_by_id, rbd_open_by_id_read_only
authoryangjun <yangjun@cmss.chinamobile.com>
Sun, 8 Dec 2019 01:09:53 +0000 (09:09 +0800)
committerJason Dillaman <dillaman@redhat.com>
Mon, 9 Dec 2019 14:08:22 +0000 (09:08 -0500)
commit3457192c24a66ba499a7c9b1747bc29c79b34636
treedd17a0011f6fec7adedd5fcf3ffad1b52dacb885
parent28e9e25e9369508d2901d2dd993a370cefe77fac
librbd: fix rbd_open_by_id, rbd_open_by_id_read_only

These methods incorrectly delete ImageCtx on error, resulting
in double-free heap corruption.

Fixes: https://tracker.ceph.com/issues/43178
Signed-off-by: yangjun <yangjun@cmss.chinamobile.com>
src/librbd/librbd.cc