summaryrefslogtreecommitdiffstats
path: root/net/ethernet
diff options
context:
space:
mode:
authorIlya Dryomov2014-03-13 15:36:14 +0100
committerSage Weil2014-04-05 06:07:38 +0200
commit597b52f6ca247086371abd67e5083292a500e736 (patch)
tree15a2b0ca2d8a8f7ef8328d3803bba173d869aff0 /net/ethernet
parentlibceph: split osdmap allocation and decode steps (diff)
downloadkernel-qcow2-linux-597b52f6ca247086371abd67e5083292a500e736.tar.gz
kernel-qcow2-linux-597b52f6ca247086371abd67e5083292a500e736.tar.xz
kernel-qcow2-linux-597b52f6ca247086371abd67e5083292a500e736.zip
libceph: fixup error handling in osdmap_decode()
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. Fix this by adding a special e_inval label to be used by all ceph_decode_* macros. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'net/ethernet')
0 files changed, 0 insertions, 0 deletions