patch-1.3.65 linux/net/ipv4/tcp_output.c
Next file: linux/net/ipv4/tcp_timer.c
Previous file: linux/net/ipv4/tcp_input.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Fri Feb 16 14:52:57 1996
- Orig file:
v1.3.64/linux/net/ipv4/tcp_output.c
- Orig date:
Fri Feb 16 11:34:12 1996
diff -u --recursive --new-file v1.3.64/linux/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
@@ -574,10 +574,7 @@
struct device *dev=NULL;
int tmp;
- release_sock(sk); /* in case the malloc sleeps. */
-
buff = sock_wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL);
- sk->inuse = 1;
if (buff == NULL)
{
@@ -676,7 +673,6 @@
newsk->dead = 1;
newsk->state = TCP_CLOSE;
/* And this will destroy it */
- release_sock(newsk);
kfree_skb(skb, FREE_READ);
tcp_statistics.TcpAttemptFails++;
return;
@@ -703,7 +699,6 @@
kfree_skb(buff,FREE_WRITE);
newsk->dead = 1;
newsk->state = TCP_CLOSE;
- release_sock(newsk);
skb->sk = sk;
kfree_skb(skb, FREE_READ);
tcp_statistics.TcpAttemptFails++;
@@ -750,7 +745,6 @@
skb_queue_tail(&sk->receive_queue,skb);
sk->ack_backlog++;
- release_sock(newsk);
tcp_statistics.TcpOutSegs++;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this