mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
acl: use uintptr_t for ace walker cookies
Avoid assuming that a pointer can fit in a uint64_t and use uintptr_t instead. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Signed-off-by: Brooks Davis <brooks.davis@sri.com> Closes #14131
This commit is contained in:
committed by
Brian Behlendorf
parent
7309e94239
commit
d96303cb07
@@ -631,8 +631,8 @@ zfs_acl_next_ace(zfs_acl_t *aclp, void *start, uint64_t *who,
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
static uint64_t
|
||||
zfs_ace_walk(void *datap, uint64_t cookie, int aclcnt,
|
||||
static uintptr_t
|
||||
zfs_ace_walk(void *datap, uintptr_t cookie, int aclcnt,
|
||||
uint16_t *flags, uint16_t *type, uint32_t *mask)
|
||||
{
|
||||
(void) aclcnt;
|
||||
@@ -642,7 +642,7 @@ zfs_ace_walk(void *datap, uint64_t cookie, int aclcnt,
|
||||
|
||||
acep = zfs_acl_next_ace(aclp, acep, &who, mask,
|
||||
flags, type);
|
||||
return ((uint64_t)(uintptr_t)acep);
|
||||
return ((uintptr_t)acep);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user