[IrDA]: af_irda.c cleanups
authorSamuel Ortiz <samuel@sortiz.org>
Thu, 28 Sep 2006 03:05:38 +0000 (20:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:02:46 +0000 (18:02 -0700)
We lock the socket when both releasing and getting a disconnected
notification. In the latter case, we also ste the socket as orphan.
This fixes a potential kernel bug that can be triggered when we get the
disconnection notification before closing the socket.

Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found