mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
amd64: fix return value of copyinstr after r338970
The function stopped swapping rdi and rsi, but the error handling code was not updated with the new register name. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
89f652d149
commit
825eeb55f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338989
@ -1097,7 +1097,7 @@ copyinstr_toolong_smap:
|
||||
copyinstr_toolong:
|
||||
/* rdx is zero - return ENAMETOOLONG or EFAULT */
|
||||
movq $VM_MAXUSER_ADDRESS,%rax
|
||||
cmpq %rax,%rsi
|
||||
cmpq %rax,%rdi
|
||||
jae cpystrflt
|
||||
movl $ENAMETOOLONG,%eax
|
||||
jmp cpystrflt_x
|
||||
|
Loading…
Reference in New Issue
Block a user