HomeFreeBSD

nmount: Ignore errors when copying out an error string

Description

nmount: Ignore errors when copying out an error string

In general we copy error strings as part of reporting an error from
lower layers, so if the copyout() fails there's nothing to do since we'd
prefer to preserve the original error.

This is in preparation for annotating copyin() and related functions
with __result_use_check.

Reviewed by: olce, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43147

Details

Provenance
markjAuthored on Dec 26 2023, 1:43 AM
Reviewer
olce
Differential Revision
D43147: nmount: Ignore errors when copying out an error string
Parents
rGbbf221e3e822: geom: Report copyout() errors in g_ctl_ioctl_ctl()
Branches
Unknown
Tags
Unknown