diff options
| author | Weixie Cui <cuiweixie@gmail.com> | 2026-03-31 10:12:32 +0000 |
|---|---|---|
| committer | Mitchell Horne <mhorne@FreeBSD.org> | 2026-04-09 16:46:23 +0000 |
| commit | c6224994ac70b4f71ef9e11903bb2e50ed2b1bfe (patch) | |
| tree | 66eb747d3d605fabb52084cff309801453a7f800 /contrib/binutils/bfd/hosts | |
| parent | f86ba3eec5961c0217b5458663e0eae5bbad314e (diff) | |
freebsd11_freebsd32_nstat() invoked copyout(2) when
freebsd11_cvtnstat32() failed and skipped copyout on success. This is
backwards.
Fix this to match freebsd11_freebsd32_nlstat() and freebsd11_nstat(),
and only copy the nstat32 result to userspace when conversion succeeds.
Signed-off-by: Weixie Cui <cuiweixie@gmail.com>
Reviewed by: mhorne
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/2109
Diffstat (limited to 'contrib/binutils/bfd/hosts')
0 files changed, 0 insertions, 0 deletions
