mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
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)
This commit is contained in:
parent
bd287fa8bc
commit
7bc713a5a5
1 changed files with 1 additions and 1 deletions
|
|
@ -1025,7 +1025,7 @@ bail:
|
|||
fsoptions->uio_iov[2 * errmsg_pos + 1].iov_base,
|
||||
fsoptions->uio_iov[2 * errmsg_pos + 1].iov_len);
|
||||
} else {
|
||||
copyout(errmsg,
|
||||
(void)copyout(errmsg,
|
||||
fsoptions->uio_iov[2 * errmsg_pos + 1].iov_base,
|
||||
fsoptions->uio_iov[2 * errmsg_pos + 1].iov_len);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue