patch-1.3.6 linux/drivers/net/loopback.c

Next file: linux/drivers/net/net_init.c
Previous file: linux/drivers/net/lance.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.5/linux/drivers/net/loopback.c linux/drivers/net/loopback.c
@@ -86,7 +86,7 @@
 	  	 */
 		save_flags(flags);
 	  	cli();
-	  	skb->sk->wmem_alloc-=skb->mem_len;
+	  	skb->sk->wmem_alloc-=skb->truesize;
 	  	skb->sk->write_space(skb->sk);
 	  	restore_flags(flags);
 	}

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