]> 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)
commitc22bc17ebde6e958f1b1aefa41d3c631b980b18a
treec6c420456780e2b3670978111e5b922731b694d9
parentce6d9e856d521e82ef141baf78099ce941a6fa7c
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