]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: avoid dereferencing an empty container during deep-copy 30177/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 14 Jun 2019 17:34:24 +0000 (13:34 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 5 Sep 2019 11:02:10 +0000 (13:02 +0200)
commit3b1125fc5cb77cb3ac61895ff917ccecede61fd5
treee1d34a41d1c430a3a7a29a8027dcd4265be039ba
parent692a678a00919bcce61c0ee46a3adbdeee8265e9
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>
(cherry picked from commit 0f491cbb96ec55c68a627de71ed6ccd781a46dcc)
src/librbd/deep_copy/ImageCopyRequest.cc