diff options
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 8ca854c9e..c8dccc670 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -2982,7 +2982,8 @@ static long syz_read_part_table(volatile unsigned long size, volatile long image } } error_clear_loop: - ioctl(loopfd, LOOP_CLR_FD, 0); + if (res) + ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); close(memfd); errno = err; |
