HomeFreeBSD

sys: Mark ACL conversion routines as __result_use_check

Description

sys: Mark ACL conversion routines as __result_use_check

Both acl_copy_oldacl_into_acl() and acl_copy_acl_into_oldacl() may fail
in some circumstances (e.g., acl.acl_cnt exceeding the capacity of
OLDACL_MAX_ENTRIES). This change marks both routines with
__result_use_check, enforcing check for errors by the caller.

Suggested by: markj
Reviewed by: markj, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46254

Details

Provenance
khorben_defora.orgAuthored on Aug 9 2024, 5:37 PM
emasteCommitted on Aug 15 2024, 7:04 PM
Reviewer
markj
Differential Revision
Restricted Differential Revision
Parents
rGbef079254f3d: arm64: Clamp segment sizes properly in bounce_bus_dmamap_load_buffer()
Branches
Unknown
Tags
Unknown