Files
twx-linux/net
Olaf Kirch ae0199ba95 [IrDA]: Correctly handling socket error
This patch fixes an oops first reported in mid 2006 - see
http://lkml.org/lkml/2006/8/29/358 The cause of this bug report is that
when an error is signalled on the socket, irda_recvmsg_stream returns
without removing a local wait_queue variable from the socket's sk_sleep
queue. This causes havoc further down the road.

In response to this problem, a patch was made that invoked sock_orphan on
the socket when receiving a disconnect indication. This is not a good fix,
as this sets sk_sleep to NULL, causing applications sleeping in recvmsg
(and other places) to oops.

Signed-off-by: Olaf Kirch <olaf.kirch@oracle.com>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
2007-04-20 01:45:09 +02:00
..
2006-02-13 15:38:42 -08:00
2006-01-11 18:42:14 -08:00
2007-02-14 09:33:14 +01:00
2006-03-19 13:20:06 -08:00
2006-08-08 23:23:12 +02:00
2006-01-11 18:42:14 -08:00
2006-01-17 13:03:54 -08:00
2006-03-08 14:14:01 -08:00
2006-01-11 18:42:14 -08:00
2006-01-12 14:06:31 -08:00