libceph: safely decode max_osd value in osdmap_decode()
authorIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 13 Mar 2014 14:36:14 +0000 (16:36 +0200)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:40 +0000 (21:07 -0700)
commit3977058c468b872c6bc5e5273bf911d791848643
tree8d4d2f0c3e204724cad1295ac88ecb2e3d930a85
parent597b52f6ca247086371abd67e5083292a500e736
libceph: safely decode max_osd value in osdmap_decode()

max_osd value is not covered by any ceph_decode_need().  Use a safe
version of ceph_decode_* macro to decode it.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/osdmap.c