aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sched/cls_tcindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c
index 365b23b928f4..8d0e83d6903e 100644
--- a/net/sched/cls_tcindex.c
+++ b/net/sched/cls_tcindex.c
@@ -303,7 +303,7 @@ tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base,
303 cp->hash = DEFAULT_HASH_SIZE; 303 cp->hash = DEFAULT_HASH_SIZE;
304 } 304 }
305 305
306 if (!cp->perfect && cp->h) 306 if (!cp->perfect && !cp->h)
307 cp->alloc_hash = cp->hash; 307 cp->alloc_hash = cp->hash;
308 308
309 /* Note: this could be as restrictive as if (handle & ~(mask >> shift)) 309 /* Note: this could be as restrictive as if (handle & ~(mask >> shift))