Skip to content

Commit c069d3d

Browse files
kotee4kokotee4ko
authored andcommitted
Safe TSL_FD from closing by guest
1 parent 484a4c1 commit c069d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux-user/syscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8382,7 +8382,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
83828382
#endif
83838383
case TARGET_NR_close:
83848384
if (unlikely(arg1 == TSL_FD))
8385-
return 0x00;
8385+
return 0x00;
83868386
fd_trans_unregister(arg1);
83878387
return get_errno(close(arg1));
83888388

0 commit comments

Comments
 (0)