]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: fix dereference of NULL pg_pool_t
authorSage Weil <sage@inktank.com>
Sun, 1 Sep 2013 15:42:23 +0000 (08:42 -0700)
committerSage Weil <sage@inktank.com>
Sun, 1 Sep 2013 15:42:41 +0000 (08:42 -0700)
commit1c5e58a85ef7f26b2c617ecb6c08de5632bb0fe3
tree890181b24a7478efc13bdfb47de881df9174f7ee
parenta200e184b15a03a4ca382e94caf01efb41cb9db7
osdc/Objecter: fix dereference of NULL pg_pool_t

Make sure we don't dereference a NULL pointer.  Note that we check a
bit further down if the target pool does not exist and return the proper
error.

Bug was reliably reproduced by

 ./ceph_test_rados_api_watch_notify --gtest_filter=LibRadosWatchNotify.WatchNotifyTimeoutTestPP

Signed-off-by: Sage Weil <sage@inktank.com>
src/osdc/Objecter.cc