mcexec: Do not close fd returned to mckernel side

Fixes: 9a79920ef9 ("Static analysis fixes")
Change-Id: I2b51d6e288e7bb2b0f4bff579fa237d575dcb026
Reported-by: Tomoki Shirasawa <tomoki.shirasawa.kk@hitachi-solutions.com>
This commit is contained in:
Dominique Martinet
2018-07-30 18:11:43 +09:00
committed by Dominique Martinet
parent bc0759e2dc
commit d898f18293

View File

@ -3428,8 +3428,6 @@ int main_loop(struct thread_data_s *my_thread)
ret = open(fn, w.sr.args[2], w.sr.args[3]);
SET_ERR(ret);
do_syscall_return(fd, cpu, ret, 0, 0, 0, 0);
if (ret >= 0)
close(ret);
break;
case __NR_futex: