OSDN Git Service

libceph: fix error handling in handle_reply()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 15 Aug 2013 05:51:58 +0000 (08:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:24:25 +0000 (12:24 -0800)
commite9e4b13abe4e4a399ed115b858ba8471854a938b
tree16173cbed62bc905122bd2a39d13db1e81857898
parent01bb1b04a1dd3736d20b859a9bcf3d7509566c1f
libceph: fix error handling in handle_reply()

commit 1874119664dafda3ef2ed9b51b4759a9540d4a1a upstream.

We've tried to fix the error paths in this function before, but there
is still a hidden goto in the ceph_decode_need() macro which goes to the
wrong place.  We need to release the "req" and unlock a mutex before
returning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/osd_client.c