mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
Revert "module: fix __module_ref_addr()"
This reverts commit d150a2b965.
Thanks to Jiri Benc for finding the problem that this patch is
not correct for the 2.6.32-stable series.
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
d72737aa81
commit
1cd8211f07
|
|
@ -455,7 +455,7 @@ void symbol_put_addr(void *addr);
|
|||
static inline local_t *__module_ref_addr(struct module *mod, int cpu)
|
||||
{
|
||||
#ifdef CONFIG_SMP
|
||||
return (local_t *) per_cpu_ptr(mod->refptr, cpu);
|
||||
return (local_t *) (mod->refptr + per_cpu_offset(cpu));
|
||||
#else
|
||||
return &mod->ref;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user