patch-2.0.36 linux/net/ipv4/tcp_output.c

Next file: linux/net/netrom/af_netrom.c
Previous file: linux/net/ipv4/tcp_input.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
@@ -858,7 +858,7 @@
 	struct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
 	struct tcphdr *t1;
 	struct sk_buff *buff;
-	struct device *dev=NULL;
+	struct device *dev=sk->bound_device;
 	int tmp;
 		
 	buff = sock_wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL);
@@ -962,7 +962,7 @@
 	struct tcphdr *t1;
 	unsigned char *ptr;
 	struct sk_buff * buff;
-	struct device *ndev=NULL;
+	struct device *ndev=newsk->bound_device;
 	int tmp;
 
 	buff = sock_wmalloc(newsk, MAX_SYN_SIZE, 1, GFP_ATOMIC);
@@ -1121,7 +1121,7 @@
 {
 	struct sk_buff *buff;
 	struct tcphdr *t1;
-	struct device *dev = NULL;
+	struct device *dev = sk->bound_device;
 	int tmp;
 
 	if(sk->zapped)
@@ -1216,7 +1216,7 @@
 {
 	struct sk_buff *buff,*skb;
 	struct tcphdr *t1;
-	struct device *dev=NULL;
+	struct device *dev=sk->bound_device;
 	int tmp;
 
 	if (sk->zapped)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov