]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: potential seg fault when blacklisting an image client 11034/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 9 Sep 2016 12:31:52 +0000 (08:31 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 9 Sep 2016 12:31:52 +0000 (08:31 -0400)
Fixes: http://tracker.ceph.com/issues/17251
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image_watcher/RewatchRequest.cc

index 4d808f459c5d3e11cb228d0a7e9b6f6771fc86c0..cbf22c07087e53ce8d53999ee3f842a364dad5ac 100644 (file)
@@ -56,6 +56,7 @@ void RewatchRequest<I>::handle_unwatch(int r) {
   if (r == -EBLACKLISTED) {
     lderr(cct) << "client blacklisted" << dendl;
     finish(r);
+    return;
   } else if (r < 0) {
     lderr(cct) << "failed to unwatch: " << cpp_strerror(r) << dendl;
   }