diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c index c568656e149f5ca0b17024bfb0902a5a59e8e9dc..b070780e78fc9f7f55222f9bac2c24bdccb20a0d 100644 --- a/net/sched/cls_tcindex.c +++ b/net/sched/cls_tcindex.c @@ -480,7 +480,7 @@ tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, /* lookup the filter, guaranteed to exist */ for (cf = rcu_dereference_bh_rtnl(*fp); cf; fp = &cf->next, cf = rcu_dereference_bh_rtnl(*fp)) - if (cf->key == handle) + if (cf->key == (u16)handle) break; f->next = cf->next;