Re: [PATCH 2/2] move unneeded data to initdata section

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Thursday, November 15, 2007 - 11:19 am

Sam Ravnborg <sam@ravnborg.org> writes:


Down at the bottom of sys_init_module we have:

	/* Drop initial reference. */
	module_put(mod);
	unwind_remove_table(mod->unwind_info, 1);

	module_free(mod, mod->module_init);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	mod->module_init = NULL;
	mod->init_size = 0;
	mod->init_text_size = 0;
	mutex_unlock(&module_mutex);

	return 0;

Which frees the memory for the .init sections.

Eric
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] move unneeded data to initdata section, Denis V. Lunev, (Wed Nov 7, 5:01 am)
Re: [PATCH 2/2] move unneeded data to initdata section, David Miller, (Tue Nov 13, 4:24 am)
Re: [PATCH 2/2] move unneeded data to initdata section, Eric W. Biederman, (Thu Nov 15, 7:32 am)
Re: [PATCH 2/2] move unneeded data to initdata section, Denis V. Lunev, (Thu Nov 15, 7:42 am)
Re: [PATCH 2/2] move unneeded data to initdata section, Sam Ravnborg, (Thu Nov 15, 8:14 am)
Re: [PATCH 2/2] move unneeded data to initdata section, Eric W. Biederman, (Thu Nov 15, 11:19 am)
Re: [PATCH 2/2] move unneeded data to initdata section, Sam Ravnborg, (Thu Nov 15, 11:43 am)
Re: [PATCH 2/2] move unneeded data to initdata section, Denis V. Lunev, (Thu Nov 15, 12:17 pm)
Re: [PATCH 2/2] move unneeded data to initdata section, Sam Ravnborg, (Thu Nov 15, 12:34 pm)