--- linux/net/sched/act_api.c 2005-03-02 09:38:33.000000000 +0200 +++ tovbug/net/sched/act_api.c 2005-04-15 13:27:54.000000000 +0300 @@ -401,7 +401,7 @@ int tcf_action_copy_stats(struct sk_buff if (a->ops != NULL && a->ops->get_stats != NULL) if (a->ops->get_stats(skb, a) < 0) - goto errout; + goto errout_stop_stats; if (gnet_stats_copy_basic(&d, &h->bstats) < 0 || #ifdef CONFIG_NET_ESTIMATOR @@ -415,6 +415,9 @@ int tcf_action_copy_stats(struct sk_buff return 0; +errout_stop_stats: + gnet_stats_finish_copy(&d); + errout: return -1; }