mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
When the terminal GDB_FORK_ENABLED state is reached, the coordination
socket is not needed anymore and is therefore closed. However, if there
is a communication error between QEMU gdbstub and GDB, the generic
error handling code attempts to close it again.
Fix by closing it later - before returning - instead.
Fixes: Coverity CID 1539966
Fixes:
|
||
|---|---|---|
| .. | ||
| gdbstub.c | ||
| internals.h | ||
| meson.build | ||
| syscalls.c | ||
| system.c | ||
| trace-events | ||
| trace.h | ||
| user-target.c | ||
| user.c | ||