libceph: fix error handling in handle_reply()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 15 Aug 2013 05:51:58 +0000 (08:51 +0300)
committerSage Weil <sage@inktank.com>
Tue, 27 Aug 2013 19:26:30 +0000 (12:26 -0700)
commit1874119664dafda3ef2ed9b51b4759a9540d4a1a
treec0ef0813aeefd50703f2934abe752a2b4ebaad83
parentb314a90d8f3f1d16ec45744e5e2141ea6e14e034
libceph: fix error handling in handle_reply()

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>
net/ceph/osd_client.c