Revert "net/sched: flower: Fix wrong handle assignment during filter change"
[platform/kernel/linux-starfive.git] / net / sched / cls_flower.c
index 4dc3a90..ac4f344 100644 (file)
@@ -2231,8 +2231,8 @@ static int fl_change(struct net *net, struct sk_buff *in_skb,
                        kfree(fnew);
                        goto errout_tb;
                }
-               fnew->handle = handle;
        }
+       fnew->handle = handle;
 
        err = tcf_exts_init_ex(&fnew->exts, net, TCA_FLOWER_ACT, 0, tp, handle,
                               !tc_skip_hw(fnew->flags));