]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
rbd: Fix error recovery in rbd_obj_read_sync()
authorJan Kara <jack@suse.cz>
Wed, 22 Oct 2014 07:17:24 +0000 (09:17 +0200)
committerIlya Dryomov <idryomov@redhat.com>
Mon, 27 Oct 2014 15:19:02 +0000 (18:19 +0300)
commit1d08da16d3ae323746883469449785a9d35df4e3
tree26aad6063728ab75ff49ea07b34f7817ed9c887b
parent34884630523d4086b61993936ca958107237f029
rbd: Fix error recovery in rbd_obj_read_sync()

When we fail to allocate page vector in rbd_obj_read_sync() we just
basically ignore the problem and continue which will result in an oops
later. Fix the problem by returning proper error.

CC: Yehuda Sadeh <yehuda@inktank.com>
CC: Sage Weil <sage@inktank.com>
CC: ceph-devel@vger.kernel.org
CC: stable@vger.kernel.org
Coverity-id: 1226882
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
drivers/block/rbd.c