diff --git a/module/zfs/zfs_vnops.c b/module/zfs/zfs_vnops.c index b20e3b2c3a29..821ececde35f 100644 --- a/module/zfs/zfs_vnops.c +++ b/module/zfs/zfs_vnops.c @@ -2274,7 +2274,7 @@ zfs_setattr(struct inode *ip, struct iattr *attr, int flags, cred_t *cr) /* * Remove setuid/setgid for non-privileged users */ - secpolicy_setid_clear(attr, cr); + (void) secpolicy_setid_clear(attr, cr); trim_mask = (mask & (ATTR_UID|ATTR_GID)); } else { need_policy = TRUE;