libceph: fix watch_item_t decoding to use ceph_decode_entity_addr
authorJeff Layton <jlayton@kernel.org>
Tue, 4 Jun 2019 18:35:18 +0000 (14:35 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:43 +0000 (14:01 +0200)
commit51fc7ab44519adc6684ac6575826f8b1a16ee4b3
treeed68843dde9b390f0487b4cd692478bb2e3a7364
parentdcbc919a5dc8c2629684a113a90c0b6fe10c3462
libceph: fix watch_item_t decoding to use ceph_decode_entity_addr

While we're in there, let's also fix up the decoder to do proper
bounds checking.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osd_client.c