libceph: fix oops in ceph_msg_data_{pages,pagelist}_advance()
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 22 Mar 2014 22:50:39 +0000 (06:50 +0800)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:15 +0000 (21:07 -0700)
commitd90deda69cb82411ba7d990e97218e0f8b2d07bb
treec99d23f6ec67296c07dd661180c917b8cce2fad6
parent5f75ce57818e4a48bdeac0b76daeb434eea26059
libceph: fix oops in ceph_msg_data_{pages,pagelist}_advance()

When there is no more data, ceph_msg_data_{pages,pagelist}_advance()
should not move on to the next page.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
net/ceph/messenger.c