mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Fix file descriptor leaks on arm Android
* exec/loader-aarch64.s (_start): * exec/loader-armeabi.s (_start): Fix thinko. Do not merge to master.
This commit is contained in:
parent
22b646efe3
commit
74e25c9413
2 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ _start:
|
||||||
b .one_auxv
|
b .one_auxv
|
||||||
.cleanup:
|
.cleanup:
|
||||||
cmp x28, #-1 // is secondary fd set?
|
cmp x28, #-1 // is secondary fd set?
|
||||||
bne .cleanup1 // not set
|
beq .cleanup1 // not set
|
||||||
mov x8, #57 // SYS_close
|
mov x8, #57 // SYS_close
|
||||||
mov x0, x28 // secondary fd
|
mov x0, x28 // secondary fd
|
||||||
svc #0 // syscall
|
svc #0 // syscall
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ _start:
|
||||||
b .one_auxv
|
b .one_auxv
|
||||||
.cleanup:
|
.cleanup:
|
||||||
cmp r14, #-1 @ secondary fd set?
|
cmp r14, #-1 @ secondary fd set?
|
||||||
bne .cleanup1 @ not set
|
beq .cleanup1 @ not set
|
||||||
mov r7, #6 @ SYS_close
|
mov r7, #6 @ SYS_close
|
||||||
mov r0, r14 @ secondary fd
|
mov r0, r14 @ secondary fd
|
||||||
swi #0 @ syscall
|
swi #0 @ syscall
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue