]> Pileus Git - ~andy/linux/commit
[SCTP]: Add bind hash locking to the migrate code
authorVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 7 Dec 2007 06:50:27 +0000 (22:50 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 7 Dec 2007 09:07:45 +0000 (01:07 -0800)
commitf26f7c480555812ca7c4037e0a50fa54afe2cb4a
tree1418b99033d50241b8f866124b0974e7adb16449
parent56c99d0415e8b778c200f115b198c126243ec351
[SCTP]: Add bind hash locking to the migrate code

SCTP accept code tries to add a newliy created socket
to a bind bucket without holding a lock.   On a really
busy system, that can causes slab corruptions.
Add a lock around this code.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c