From: Ilya Dryomov Date: Thu, 13 Mar 2014 14:36:15 +0000 (+0200) Subject: libceph: fixup error handling in osdmap_apply_incremental() X-Git-Tag: v3.15-rc1~61^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f1742b94dd0b4a2eb9255205d1756ddea182f8;p=pandora-kernel.git libceph: fixup error handling in osdmap_apply_incremental() The existing error handling scheme requires resetting err to -EINVAL prior to calling any ceph_decode_* macro. This is ugly and fragile, and there already are a few places where we would return 0 on error, due to a missing reset. Follow osdmap_decode() and fix this by adding a special e_inval label to be used by all ceph_decode_* macros. Signed-off-by: Ilya Dryomov Reviewed-by: Alex Elder --- Reading git-diff-tree failed