Re: [this_cpu_xx V8 07/16] Module handling: Use this_cpu_xx to dynamically allocate counters

From: Rusty Russell
Date: Mon Dec 21 2009 - 18:28:27 EST


On Mon, 21 Dec 2009 06:29:36 pm Tejun Heo wrote:
> @@ -555,6 +556,7 @@ static void module_unload_free(struct module *mod)
> kfree(use);
> sysfs_remove_link(i->holders_dir, mod->name);
> /* There can be at most one match. */
> + free_percpu(i->refptr);
> break;
> }
> }

This looks very wrong.

Rusty
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/