diff options
author | Ursula Braun <braunu@de.ibm.com> | 2007-07-14 19:04:25 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-14 19:04:25 -0700 |
commit | febca281f677a775c61cd0572c2f35e4ead9e7d5 (patch) | |
tree | 64a58deba476ff3dbc7468d6d2e8e33e1351bf68 /include/net | |
parent | 13fdc9a74df0fec70f421c6891e184ed8c3b9088 (diff) | |
download | kernel-crypto-febca281f677a775c61cd0572c2f35e4ead9e7d5.tar.gz kernel-crypto-febca281f677a775c61cd0572c2f35e4ead9e7d5.tar.xz kernel-crypto-febca281f677a775c61cd0572c2f35e4ead9e7d5.zip |
[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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/iucv/af_iucv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h index f9bd11be189..b6c468cd7f5 100644 --- a/include/net/iucv/af_iucv.h +++ b/include/net/iucv/af_iucv.h @@ -60,6 +60,7 @@ struct iucv_sock { char dst_user_id[8]; char dst_name[8]; struct list_head accept_q; + spinlock_t accept_q_lock; struct sock *parent; struct iucv_path *path; struct sk_buff_head send_skb_q; |