Skip to content

Commit

Permalink
aarch64: Fix error return from __ioctl
Browse files Browse the repository at this point in the history
Forgotten in ca3cfa4
where the error branch was moved from PSEUDO_RET.
  • Loading branch information
Richard Henderson committed May 30, 2014
1 parent 3047799 commit 74f31c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2014-05-30 Richard Henderson <rth@twiddle.net>

* sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
use of PSEUDO_RET; perform the error check directly.

2014-05-30 Marko Myllynen <myllynen@redhat.com>

* sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
Expand Down
13 changes: 7 additions & 6 deletions sysdeps/unix/sysv/linux/aarch64/ioctl.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@

.text
ENTRY(__ioctl)
movz x8, #__NR_ioctl
sxtw x0, w0
svc #0x0
cmn x0, #0x1, lsl #12
PSEUDO_RET
PSEUDO_END (__ioctl)
mov x8, #__NR_ioctl
sxtw x0, w0
svc #0x0
cmn x0, #4095
b.cs .Lsyscall_error
ret
PSEUDO_END (__ioctl)

weak_alias (__ioctl, ioctl)

0 comments on commit 74f31c1

Please sign in to comment.