patch-2.4.25 linux-2.4.25/net/decnet/dn_rules.c

Next file: linux-2.4.25/net/econet/af_econet.c
Previous file: linux-2.4.25/net/decnet/dn_neigh.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/net/decnet/dn_rules.c linux-2.4.25/net/decnet/dn_rules.c
@@ -335,7 +335,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)