2.3.99pre3/4/5 af_irda.c

From: Garst R. Reese (reese@isn.net)
Date: Tue Apr 11 2000 - 21:12:43 EST


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

--- 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)

-
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/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:17 EST