Linux-kernel mailing list archive 2000-15,: 2.3.99pre3/4/5 af_irda.c

# 2.3.99pre3/4/5 af_irda.c

Garst R. Reese (reese@isn.net)
Tue, 11 Apr 2000 23:12:43 -0300

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alan Cox: "Re: EXT2 and BadBlock updating....."
- Previous message: Horst von Brand: "Re: Patch Archive"

This is a multi-part message in MIME format.
--------------50C38654817AE6AF717D75FD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi linus, list
The attached patch was sent to the dag bratti some time ago, but I guess
he's on vacation.
It mimics the fix to other af_ files.
Garst
--------------50C38654817AE6AF717D75FD
Content-Type: text/plain; charset=us-ascii;
name="af_irda.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="af_irda.c.diff"

--- af_irda.c.99pre4.orig Wed Feb 9 00:12:36 2000
+++ af_irda.c Mon Apr 3 02:31:20 2000
@@ -1212,12 +1212,14 @@
* Sleep until data has arrive. But check for races..
*
*/
-static void irda_data_wait(struct sock *sk)
-{
+static void irda_data_wait(struct socket *sock)
+{ struct sock *sk = sock->sk;
+
if (!skb_peek(&sk->receive_queue)) {
- sk->socket->flags |= SO_WAITDATA;
+ set_bit(SOCK_ASYNC_WAITDATA, &sock->flags);
+
interruptible_sleep_on(sk->sleep);
- sk->socket->flags &= ~SO_WAITDATA;
+ clear_bit(SOCK_ASYNC_WAITDATA, &sock->flags);
}
}
@@ -1241,7 +1243,7 @@
self = sk->protinfo.irda;
ASSERT(self != NULL, return -1;);
- if (sock->flags & SO_ACCEPTCON)
+ if (sock->flags & __SO_ACCEPTCON)
return(-EINVAL);
if (flags & MSG_OOB)

--------------50C38654817AE6AF717D75FD--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Alan Cox: "Re: EXT2 and BadBlock updating....."
- Previous message: Horst von Brand: "Re: Patch Archive"