]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[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)
commitda349f1c2e0a0bf8958cdaf14e8f33acdf3182a5
treec959dd1fe9a4104f94febd0ac6928d9f286f12f8
parent1a9e9ef684ec2bd27fcdb373a82957a0c050daf6
[IrDA]: af_irda.c cleanups

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>
net/irda/af_irda.c