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

(cherry picked from commit 099d25c354d93d9cd9c9cd261428f5ab0547a194)

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
rGbd8a789e3c28: geom: Report copyout() errors in g_ctl_ioctl_ctl()
Branches
Unknown
Tags
Unknown