]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix potential double free of SetSnapRequest instance 8676/head
authorrunsisi <runsisi@zte.com.cn>
Thu, 21 Apr 2016 06:48:55 +0000 (14:48 +0800)
committerrunsisi <runsisi@hust.edu.cn>
Fri, 22 Apr 2016 14:02:55 +0000 (22:02 +0800)
commit0a6eaac12fe29762c3dd29068f9427840cfea100
treed529b5b5b1bf43000d5fa032ce2b0c750bf5417c
parenteff74daf9c53bcd86ff4f6f9c8958f9b04085fdf
librbd: fix potential double free of SetSnapRequest instance

if image feature EXCLUSIVE_LOCK is not enabled we should not try to
initialize the exclusive lock, or we may end with two async Contexts
to finish the same SetSnapRequest instance

Fixes: http://tracker.ceph.com/issues/15571
Signed-off-by: runsisi <runsisi@zte.com.cn>
src/librbd/image/SetSnapRequest.cc