]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30ceb2b9feafa5f43292634e700cd894f1d117a3
treeca53c26f8290127f2199e387987c176402483a55
parent1ad071fd5a769d92d04b7699e324ced563960ab9
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