libceph: fix misjudgement of maximum monitor number
authorChengguang Xu <cgxu519@icloud.com>
Sun, 11 Feb 2018 01:33:28 +0000 (09:33 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:45 +0000 (10:12 +0200)
commit7377324e5bb2ed4c89e9d60691462a7272ee08a5
treeee7cb7f1ff6106f12efbab8c7abee6fe801ded3b
parent11e1478df91cba4919c2bb011c49f659ebed3d16
libceph: fix misjudgement of maximum monitor number

num_mon should allow up to CEPH_MAX_MON in ceph_monmap_decode().

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/mon_client.c