From 3659455074a4acf2dd3c49afd3856e36569d4166 Mon Sep 17 00:00:00 2001 From: Jamal Hadi Salim Date: Thu, 7 Aug 2008 20:37:22 -0700 Subject: [PATCH] --- yaml --- r: 108048 b: refs/heads/master c: 76aab2c1eae491a5d73ac83deec97dd28ebac584 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/sched/act_api.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index d111aaa484f0..c55c65a16640 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4ab84d450e24b3a309608182a8d8e30626b46f8f +refs/heads/master: 76aab2c1eae491a5d73ac83deec97dd28ebac584 diff --git a/trunk/net/sched/act_api.c b/trunk/net/sched/act_api.c index d308c19aa3f9..26c7e1f9a350 100644 --- a/trunk/net/sched/act_api.c +++ b/trunk/net/sched/act_api.c @@ -205,10 +205,9 @@ struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a, int bind, { struct tcf_common *p = NULL; if (index && (p = tcf_hash_lookup(index, hinfo)) != NULL) { - if (bind) { + if (bind) p->tcfc_bindcnt++; - p->tcfc_refcnt++; - } + p->tcfc_refcnt++; a->priv = p; } return p;