diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-10-27 12:49:40 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-10-27 12:49:40 +0000 |
commit | 866b1f5147341a0311904bff6fa1391adef67c2b (patch) | |
tree | dcd19a66eeac9af6e77338e30968190caa68f098 /sys/amd64/linux | |
parent | eb81dfb3af773b98e8064b6b75c4d473ebf38189 (diff) | |
download | src-866b1f5147341a0311904bff6fa1391adef67c2b.tar.gz src-866b1f5147341a0311904bff6fa1391adef67c2b.zip |
Fix misnomer - linux_to_bsd_errno() does the exact opposite.
Reported by: arichardson
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26965
Notes
Notes:
svn path=/head/; revision=367079
Diffstat (limited to 'sys/amd64/linux')
-rw-r--r-- | sys/amd64/linux/linux_sysvec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c index 98dc6bcbd107..bf623b6c3c2e 100644 --- a/sys/amd64/linux/linux_sysvec.c +++ b/sys/amd64/linux/linux_sysvec.c @@ -231,7 +231,7 @@ linux_set_syscall_retval(struct thread *td, int error) break; default: - frame->tf_rax = linux_to_bsd_errno(error); + frame->tf_rax = bsd_to_linux_errno(error); frame->tf_r10 = frame->tf_rcx; break; } |