rbd: Clear ceph_msg->bio_iter for retransmitted message
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 7 Jun 2012 00:35:55 +0000 (19:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:09 +0000 (11:38 -0800)
commit576e428b246271f0f078079c68a9f11679c7db8a
tree147e2fb1c6899ddda780f84196581c6f6c0cba2a
parentacecca48781a79040dca822cf96d505904c282c3
rbd: Clear ceph_msg->bio_iter for retransmitted message

(cherry picked from commit 43643528cce60ca184fe8197efa8e8da7c89a037)
(cherry picked from commit b132cf4c733f91bb4dd2277ea049243cf16e8b66)

The bug can cause NULL pointer dereference in write_partial_msg_pages

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c