From: Josh Durgin Date: Thu, 29 Aug 2013 00:08:10 +0000 (-0700) Subject: rbd: fix null dereference in dout X-Git-Tag: v3.12-rc1~90^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c35455791c1131e7ccbf56ea6fbdd562401c2ce2;p=pandora-kernel.git rbd: fix null dereference in dout 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 Reviewed-by: Sage Weil Reviewed-by: Alex Elder --- Reading git-diff-tree failed