summaryrefslogtreecommitdiffstats
path: root/hw/syborg.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2011-12-07 16:01:49 +0100
committerAnthony Liguori2011-12-13 00:06:21 +0100
commite5d1fca0f20babbe355957b9ba536fe6187691cc (patch)
tree1b824059aa57b10bb5995e276673b9cfa0e6484b /hw/syborg.c
parentnet: expand tabs in net/socket.c (diff)
downloadqemu-e5d1fca0f20babbe355957b9ba536fe6187691cc.tar.gz
qemu-e5d1fca0f20babbe355957b9ba536fe6187691cc.tar.xz
qemu-e5d1fca0f20babbe355957b9ba536fe6187691cc.zip
net: take ownership of fd in socket init functions
Today net/socket.c has no consistent policy for closing the socket file descriptor when initialization fails. This means we leak the file descriptor in some cases or we could also try to close it twice. Make error paths consistent by taking ownership of the file descriptor and closing it on error. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/syborg.c')
0 files changed, 0 insertions, 0 deletions