Phonet: listening socket lock protects the connected socket list
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Wed, 26 May 2010 00:44:44 +0000 (00:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 May 2010 07:18:50 +0000 (00:18 -0700)
commit7dfde179c38056b91d51e60f3d50902387f27c84
treeca53c26f8290127f2199e387987c176402483a55
parent97dc875f90a7b88a9fa476c256345c0d40fcdf6c
Phonet: listening socket lock protects the connected socket list

The accept()'d socket need to be unhashed while the (listen()'ing)
socket lock is held. This fixes a race condition that could lead to an
OOPS.

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/pep.c