patch-2.1.90 linux/net/rose/af_rose.c
Next file: linux/net/socket.c
Previous file: linux/net/packet/af_packet.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Mar 12 11:00:25 1998
- Orig file:
v2.1.89/linux/net/rose/af_rose.c
- Orig date:
Thu Feb 12 20:56:15 1998
diff -u --recursive --new-file v2.1.89/linux/net/rose/af_rose.c linux/net/rose/af_rose.c
@@ -149,7 +149,7 @@
struct sock *sk;
rose_cb *rose;
- if ((sk = sk_alloc(AF_ROSE, GFP_ATOMIC)) == NULL)
+ if ((sk = sk_alloc(AF_ROSE, GFP_ATOMIC, 1)) == NULL)
return NULL;
if ((rose = kmalloc(sizeof(*rose), GFP_ATOMIC)) == NULL) {
@@ -847,6 +847,8 @@
newsk = skb->sk;
newsk->pair = NULL;
+ newsk->socket = newsock;
+ newsk->sleep = &newsock->wait;
sti();
/* Now attach up the new socket */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov