mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-27 04:32:16 +03:00
Fix coverity defects
coverity scan CID:147633,type: sizeof not portable coverity scan CID:147637,type: sizeof not portable coverity scan CID:147638,type: sizeof not portable coverity scan CID:147640,type: sizeof not portable In these particular cases sizeof (XX **) happens to be equal to sizeof (X *), but this is not a portable assumption. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn> Closes #5144
This commit is contained in:
committed by
Brian Behlendorf
parent
84347be098
commit
160987b576
@@ -204,7 +204,7 @@ zfs_replay_fuid_domain(void *buf, void **end, uint64_t uid, uint64_t gid)
|
||||
return (fuid_infop);
|
||||
|
||||
fuid_infop->z_domain_table =
|
||||
kmem_zalloc(domcnt * sizeof (char **), KM_SLEEP);
|
||||
kmem_zalloc(domcnt * sizeof (char *), KM_SLEEP);
|
||||
|
||||
zfs_replay_fuid_ugid(fuid_infop, uid, gid);
|
||||
|
||||
@@ -228,7 +228,7 @@ zfs_replay_fuids(void *start, void **end, int idcnt, int domcnt, uint64_t uid,
|
||||
fuid_infop->z_domain_cnt = domcnt;
|
||||
|
||||
fuid_infop->z_domain_table =
|
||||
kmem_zalloc(domcnt * sizeof (char **), KM_SLEEP);
|
||||
kmem_zalloc(domcnt * sizeof (char *), KM_SLEEP);
|
||||
|
||||
for (i = 0; i != idcnt; i++) {
|
||||
zfs_fuid_t *zfuid;
|
||||
|
||||
Reference in New Issue
Block a user