aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-12-07 15:01:49 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-12 17:06:21 -0600
commite5d1fca0f20babbe355957b9ba536fe6187691cc (patch)
tree1b824059aa57b10bb5995e276673b9cfa0e6484b /hw
parent842480d493a085fd9598d35b3318765699f88709 (diff)
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')
0 files changed, 0 insertions, 0 deletions