]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libceph: fix osdmap decode error paths
authorSage Weil <sage@inktank.com>
Mon, 29 Oct 2012 18:01:42 +0000 (11:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:48 +0000 (08:46 -0800)
commit1c76436d1b962c8d53871d9d13c6a01094d15b95
treeca08e5b8498c565ef2ef26268bd840d010ddc63f
parent39cebb4027204a30ba2f65befbeff1ff569d3968
libceph: fix osdmap decode error paths

(cherry picked from commit 0ed7285e0001b960c888e5455ae982025210ed3d)

Ensure that we set the err value correctly so that we do not pass a 0
value to ERR_PTR and confuse the calling code.  (In particular,
osd_client.c handle_map() will BUG(!newmap)).

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/osdmap.c