diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 123094869b34e4c5f7021a405af4f4f3509d4891..975cf8cebc3497f7cac2a22f36b28b888d19b96d 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -132,12 +132,12 @@ static int ops_init(const struct pernet_operations *ops, struct net *net) return 0; if (ops->id && ops->size) { -cleanup: ng = rcu_dereference_protected(net->gen, lockdep_is_held(&pernet_ops_rwsem)); ng->ptr[*ops->id] = NULL; } +cleanup: kfree(data); out: