diff --git a/net/sched/act_police.c b/net/sched/act_police.c index 0cc305e7e4690043e3228c8425f73d384c51bf69..7b23ab07c6cc19bfb3d3fa0e028f50bbda3cdbc8 100644 --- a/net/sched/act_police.c +++ b/net/sched/act_police.c @@ -261,10 +261,8 @@ static int tcf_act_police_locate(struct net *net, struct nlattr *nla, failure_unlock: spin_unlock_bh(&police->tcf_lock); failure: - if (P_tab) - qdisc_put_rtab(P_tab); - if (R_tab) - qdisc_put_rtab(R_tab); + qdisc_put_rtab(P_tab); + qdisc_put_rtab(R_tab); if (ret == ACT_P_CREATED) kfree(police); return err;