From: Alex Elder Date: Wed, 10 Apr 2013 22:47:46 +0000 (-0500) Subject: rbd: do a safe list traversal in rbd_img_request_submit() X-Git-Tag: v3.9-rc8~18^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46faeed4a61e220b99591e9773057160eb437cc8;p=pandora-kernel.git rbd: do a safe list traversal in rbd_img_request_submit() It's possible that the reference to the object request dropped inside the loop in rbd_img_request_submit() will be the last one, in which case the content of the object pointer can't be trusted. Use a safe form of the object request list traversal to avoid problems. This resolves: http://tracker.ceph.com/issues/4705 Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed