]> git.baikalelectronics.ru Git - kernel.git/commit
af_iucv: correct cleanup if listen backlog is full
authorUrsula Braun <ursula.braun@de.ibm.com>
Wed, 28 May 2014 08:22:29 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 May 2014 00:35:23 +0000 (17:35 -0700)
commitfb4d4b6e27699f6b2ebf86bd1fa0fb168adb9374
treec6c420456780e2b3670978111e5b922731b694d9
parentf73f762a7a3ecce9e35975d2dd0e9809d736cec6
af_iucv: correct cleanup if listen backlog is full

In case of transport HIPER a sock struct is allocated for an incoming
connect request. If the backlog queue is full this socket is not
needed, but is left in the list of af_iucv sockets. Final socket
release posts console message "Attempt to release alive iucv socket".
This patch makes sure the new created socket is cleaned up correctly
if the backlog queue is full.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Reported-by: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c