[PATCH] police fix

From: Andries.Brouwer
Date: Tue Nov 16 2004 - 12:18:51 EST


diff -uprN -X /linux/dontdiff a/net/sched/police.c b/net/sched/police.c
--- a/net/sched/police.c 2004-11-15 20:02:25.000000000 +0100
+++ b/net/sched/police.c 2004-11-16 18:14:25.000000000 +0100
@@ -576,6 +576,7 @@ int tcf_police_dump_stats(struct sk_buff

if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS,
TCA_XSTATS, p->stats_lock, &d) < 0)
+ goto errout;

if (gnet_stats_copy_basic(&d, &p->bstats) < 0 ||
#ifdef CONFIG_NET_ESTIMATOR
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/