Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[sfrench/cifs-2.6.git] / net / sched / cls_api.c
index 5d0d57dc5cb7e9e19c3e4c88f85c62a1ade91b43..50566db45949b7381a46b3f4b50d830e5a745d5c 100644 (file)
@@ -2134,6 +2134,7 @@ replay:
        }
 
        if (chain->tmplt_ops && chain->tmplt_ops != tp->ops) {
+               tfilter_put(tp, fh);
                NL_SET_ERR_MSG(extack, "Chain template is set to a different filter kind");
                err = -EINVAL;
                goto errout;