]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: protect list_children from invalid child pool IoCtxs 3064/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 18 Nov 2014 02:49:26 +0000 (21:49 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 2 Dec 2014 07:35:37 +0000 (02:35 -0500)
commitacc3bf6cc9ccc1e2ab096dc7f4b7a6151f624dcd
tree1b37004c52f817018891529d2a3ecf484ba55a6f
parent83b86d4d579fa45b24ec8e9a32754b99f7cc144f
librbd: protect list_children from invalid child pool IoCtxs

While listing child images, don't ignore error codes returned
from librados when creating an IoCtx. This will prevent seg
faults from occurring when an invalid IoCtx is used.

Fixes: #10123
Backport: giant, firefly, dumpling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 0d350b6817d7905908a4e432cd359ca1d36bab50)
src/librbd/internal.cc