]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: null check before pool_name use 18790/head
authoramitkuma <amitkuma@redhat.com>
Tue, 7 Nov 2017 18:26:02 +0000 (23:56 +0530)
committeramitkuma <amitkuma@redhat.com>
Tue, 21 Nov 2017 15:56:50 +0000 (21:26 +0530)
commit55c25726c4c980ac0ad919227e6d6a61c21839fe
treebcdb8dc48b6c9956604673a4d5e14ef07e81f41a
parent3c61396038359441e09d4cc1619399706be9a363
rbd: null check before pool_name use

Fixes the coverity issue:

CID 1394846 (#1 of 1): Dereference after null check (FORWARD_NULL)
15. var_deref_model: Passing null pointer pool_name to regex_match,
which dereferences it.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
src/tools/rbd/Utils.cc