]> git.baikalelectronics.ru Git - kernel.git/commit
module: zero mod->init_ro_size after init is freed.
authorJan Glauber <jang@linux.vnet.ibm.com>
Thu, 19 May 2011 22:55:25 +0000 (16:55 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 19 May 2011 07:25:26 +0000 (16:55 +0930)
commit3c31ad9ba00104bb475ca216d75bac7f94a279cf
tree9c652a201f13d67be5671a45e9815c7e7e3b4e0e
parent98f03ef160f3fe5a6d4bf2d37902e2e56e40f71e
module: zero mod->init_ro_size after init is freed.

Reset mod->init_ro_size to zero after the init part of a module is unloaded.
Otherwise we need to check if module->init is NULL in the unprotect functions
in the next patch.

Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c