]> git.baikalelectronics.ru Git - kernel.git/commit
[AF_IUCV]: Add lock when updating accept_q
authorUrsula Braun <braunu@de.ibm.com>
Sun, 15 Jul 2007 02:04:25 +0000 (19:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Jul 2007 02:04:25 +0000 (19:04 -0700)
commitfac712061ba42c1016e519c9b17549f4d6dc2994
tree64a58deba476ff3dbc7468d6d2e8e33e1351bf68
parent7d6751857862c38b23ff22368e9382a7634c4140
[AF_IUCV]: Add lock when updating accept_q

The accept_queue of an af_iucv socket will be corrupted, if
adding and deleting of entries in this queue occurs at the
same time (connect request from one client, while accept call
is processed for another client).
Solution: add locking when updating accept_q

Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Acked-by: Frank Pavlic <fpavlic@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/iucv/af_iucv.h
net/iucv/af_iucv.c