]> 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:51:19 +0000 (08:51 -0800)
commit9aaab33ec9b7b9cb745fc47dfe20b991ff468d72
treeabd1bd5c9e0cc05901d8be2f6978fbabb37573f3
parent7f5b160daddeaa55e441aca16010fab8299dfe9e
libceph: fix osdmap decode error paths

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>
(cherry picked from commit 0ed7285e0001b960c888e5455ae982025210ed3d)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/osdmap.c