rbd: fix null dereference in dout
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 29 Aug 2013 00:08:10 +0000 (17:08 -0700)
committerSage Weil <sage@inktank.com>
Wed, 4 Sep 2013 05:08:51 +0000 (22:08 -0700)
The order parameter is sometimes NULL in _rbd_dev_v2_snap_size(), but
the dout() always derefences it. Move this to another dout() protected
by a check that order is non-NULL.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <alex.elder@linaro.org>
drivers/block/rbd.c

Simple merge