HomeFreeBSD

geom: Report copyout() errors in g_ctl_ioctl_ctl()

Description

geom: Report copyout() errors in g_ctl_ioctl_ctl()

Despite the name, req->serror is used in some cases to copy non-error
messages to userspace. So, report errors when copying out so long as
they don't clobber an earlier error.

Reviewed by: mav, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43146

Details

Provenance
markjAuthored on Dec 26 2023, 1:43 AM
Reviewer
mav
Differential Revision
D43146: geom: Report copyout() errors in g_ctl_ioctl_ctl()
Parents
rG6cdff09c0d70: gntdev: Handle errors from suword32() in gntdev_alloc_gref()
Branches
Unknown
Tags
Unknown