On Tue, Jan 16, 2018 at 7:33 AM, Jiri Pirko <j...@resnulli.us> wrote: > static int __init tc_filter_init(void) > { > + int err; > + > tc_filter_wq = alloc_ordered_workqueue("tc_filter_workqueue", 0); > if (!tc_filter_wq) > return -ENOMEM; > > + err = register_pernet_subsys(&tcf_net_ops); > + if (err) > + return err;
Need to destroy the above workqueue on error.