patch-2.4.25 linux-2.4.25/net/ipv4/fib_rules.c

Next file: linux-2.4.25/net/ipv4/icmp.c
Previous file: linux-2.4.25/net/ipv4/devinet.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/net/ipv4/fib_rules.c linux-2.4.25/net/ipv4/fib_rules.c
@@ -438,7 +438,7 @@
 
 nlmsg_failure:
 rtattr_failure:
-	skb_put(skb, b - skb->tail);
+	skb_trim(skb, b - skb->data);
 	return -1;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)