mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 04:34:11 +08:00
ceph: fix decode_locker to use ceph_decode_entity_addr
Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
f3848af1bf
commit
2f9800c899
@ -264,8 +264,11 @@ static int decode_locker(void **p, void *end, struct ceph_locker *locker)
|
||||
return ret;
|
||||
|
||||
*p += sizeof(struct ceph_timespec); /* skip expiration */
|
||||
ceph_decode_copy(p, &locker->info.addr, sizeof(locker->info.addr));
|
||||
ceph_decode_addr(&locker->info.addr);
|
||||
|
||||
ret = ceph_decode_entity_addr(p, end, &locker->info.addr);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
len = ceph_decode_32(p);
|
||||
*p += len; /* skip description */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user