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

(cherry picked from commit bbf221e3e822d15dafb37bd8e200a9864f2636b4)

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
rGc69e922c6217: gntdev: Handle errors from suword32() in gntdev_alloc_gref()
Branches
Unknown
Tags
Unknown