HomeFreeBSD

mps: Handle errors from copyout() in ioctl handlers

Description

mps: Handle errors from copyout() in ioctl handlers

In preparation for adding a __result_use_check annotation to copyin()
and related functions, start checking for errors from copyout() in
the mps(4) user command handler. This should make it easier to catch
bugs.

Reviewed by: imp, asomers
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D43176

(cherry picked from commit bcf4a7c7ace21a01d10003de9c7692f0887526c1)

Details

Provenance
markjAuthored on Dec 26 2023, 1:42 AM
Reviewer
imp
Differential Revision
D43176: mps: Handle errors from copyout() in ioctl handlers
Parents
rG573bb4875b99: umtx: Check for errors from suword32()
Branches
Unknown
Tags
Unknown