diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2024-03-12 01:07:01 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2024-03-13 11:43:52 +0000 |
commit | 6971998e241d8edc842b165b447f706c05166ae6 (patch) | |
tree | 5f63ec6012b3bf3918119d6c54ac9228175c3b88 /hw/remote/proxy.c | |
parent | bbc0543b1b8231eb9712aa9b93091a1ccb2a08cd (diff) | |
download | qemu-6971998e241d8edc842b165b447f706c05166ae6.zip qemu-6971998e241d8edc842b165b447f706c05166ae6.tar.gz qemu-6971998e241d8edc842b165b447f706c05166ae6.tar.bz2 |
gdbstub: Fix double close() of the follow-fork-mode socket
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: d547e711a8a5 ("gdbstub: Implement follow-fork-mode child")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240312001813.13720-1-iii@linux.ibm.com>
Diffstat (limited to 'hw/remote/proxy.c')
0 files changed, 0 insertions, 0 deletions