HomeFreeBSD

mpr: Handle errors from copyout() in ioctl handlers

Description

mpr: 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 mpr(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/D43177

(cherry picked from commit 68cc77a3b73ffda1e8ac891b9852faca833e11b7)

Details

Provenance
markjAuthored on Dec 26 2023, 1:42 AM
Reviewer
imp
Differential Revision
D43177: mpr: Handle errors from copyout() in ioctl handlers
Parents
rGf01b5e418745: mps: Handle errors from copyout() in ioctl handlers
Branches
Unknown
Tags
Unknown