]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: avoid dereferencing an empty container during deep-copy
authorJason Dillaman <dillaman@redhat.com>
Fri, 14 Jun 2019 17:34:24 +0000 (13:34 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 14 Jun 2019 17:34:24 +0000 (13:34 -0400)
commit0f491cbb96ec55c68a627de71ed6ccd781a46dcc
tree6f4e124ff1f88fc89ce086bc5220f148b6c63755
parenta9e9ceb5b2dd4985094a5fbed68b9c5be85dbe62
librbd: avoid dereferencing an empty container during deep-copy

While updating the image copy progress, a 'while' loop will pop the
last item from the queue and then deference the empty queue.

Fixes: http://tracker.ceph.com/issues/40368
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/deep_copy/ImageCopyRequest.cc