patch-2.4.20 linux-2.4.20/net/socket.c
Next file: linux-2.4.20/net/sunrpc/Makefile
Previous file: linux-2.4.20/net/sched/sch_ingress.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Thu Nov 28 15:53:16 2002
- Orig file:
linux-2.4.19/net/socket.c
- Orig date:
Fri Aug 2 17:39:46 2002
diff -urN linux-2.4.19/net/socket.c linux-2.4.20/net/socket.c
@@ -147,8 +147,7 @@
while (atomic_read(&net_family_lockct) != 0) {
spin_unlock(&net_family_lock);
- current->policy |= SCHED_YIELD;
- schedule();
+ yield();
spin_lock(&net_family_lock);
}
@@ -743,11 +742,13 @@
return -ENOMEM;
}
-
sock = socki_lookup(filp->f_dentry->d_inode);
- if ((sk=sock->sk) == NULL)
+ if ((sk=sock->sk) == NULL) {
+ if (fna)
+ kfree(fna);
return -EINVAL;
+ }
lock_sock(sk);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)