Tom Herbert <[email protected]> wrote:
> +static int ila_add_mapping(struct net *net, struct ila_xlat_params *p)
> +{
> + struct ila_net *ilan = net_generic(net, ila_net_id);
> + struct ila_map *ila, *head;
> + spinlock_t *lock = ila_get_lock(ilan, p->identifier);
> + int err = 0, order;
> +
> + if (!ilan->hooks_registered) {
> + /* We defer registering net hooks in the namespace until the
> + * first mapping is added.
> + */
> + err = nf_register_net_hooks(net, ila_nf_hook_ops,
> + ARRAY_SIZE(ila_nf_hook_ops));
> + if (err)
> + return err;
Looks as if this misses a
ilan->hooks_registered = true
> + }
> +
> + ila = kzalloc(sizeof(*ila), GFP_KERNEL);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html