X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Fmodule.c;h=89bcf7c1327d7dc0ffd0f9fbb365bd67f9109767;hb=f0461d0146ee30927bc7efa2ae24ea8c6693b725;hp=fc1dff9a178c0dc91dcc0ac9d7ead37b60886881;hpb=32f85742778dfc2c74975cf0b9f5bdb13470cb32;p=~andy%2Flinux diff --git a/kernel/module.c b/kernel/module.c index fc1dff9a178..89bcf7c1327 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -2192,7 +2192,7 @@ static noinline struct module *load_module(void __user *umod, /* sechdrs[0].sh_size is always zero */ mseg = section_objs(hdr, sechdrs, secstrings, "__mcount_loc", sizeof(*mseg), &num_mcount); - ftrace_init_module(mseg, mseg + num_mcount); + ftrace_init_module(mod, mseg, mseg + num_mcount); err = module_finalize(hdr, sechdrs, mod); if (err < 0)