]> git.baikalelectronics.ru Git - kernel.git/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)
commit93e6bd5a652aa0fe2017eeabc3a593fcb49e70f4
tree1418b99033d50241b8f866124b0974e7adb16449
parent3cef9233949c8132a6c275c228267ef64a731406
[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