From: Alex Elder Date: Fri, 26 Apr 2013 20:44:36 +0000 (-0500) Subject: rbd: fix rbd_dev_remove_parent() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad945fc1da42965a31089d29de3754047861f348;p=pandora-kernel.git rbd: fix rbd_dev_remove_parent() In certain error paths, it is possible for an rbd device to have a parent spec but no parent rbd_dev. In rbd_dev_remove_parent() use the parent field rather than parent_spec in determining whether to try to remove any parent devices. Use assertions to indicate that any non-null parent pointer has parent_spec associated with it. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed