libceph: allow addrvecs with a single NONE/blank address
authorIlya Dryomov <idryomov@gmail.com>
Mon, 3 May 2021 15:09:01 +0000 (17:09 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 May 2021 14:06:15 +0000 (16:06 +0200)
commit3f1c6f2122fc780560f09735b6d1dbf39b44eb0f
treed3795e0cb962e791d5c312f432c1c0393cb467c0
parent61ca49a9105faefa003b37542cebad8722f8ae22
libceph: allow addrvecs with a single NONE/blank address

Normally, an unused OSD id/slot is represented by an empty addrvec.
However, it also appears to be possible to generate an osdmap where
an unused OSD id/slot has an addrvec with a single blank address of
type NONE.  Allow such addrvecs and make the end result be exactly
the same as for the empty addrvec case -- leave addr intact.

Cc: stable@vger.kernel.org # 5.11+
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
net/ceph/decode.c