]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sched/act_mirred.c
act_mirred: avoid calling tcf_hash_release() when binding
[karo-tx-linux.git] / net / sched / act_mirred.c
index a42a3b257226178eb5af04054a17813c04368613..268545050ddbd67245ead8394a82f44503657ea5 100644 (file)
@@ -98,6 +98,8 @@ static int tcf_mirred_init(struct net *net, struct nlattr *nla,
                        return ret;
                ret = ACT_P_CREATED;
        } else {
+               if (bind)
+                       return 0;
                if (!ovr) {
                        tcf_hash_release(a, bind);
                        return -EEXIST;