diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-09-19 19:15:08 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-09-19 19:15:08 +0000 |
commit | 03ba4131783cc9e872f8bb26a03f15bc11f27564 (patch) | |
tree | 88db8dba75ae06ba3bad08e42c5e52efc162535c /kernel/module.c | |
parent | 257730f99381dd26e10b832fce4c94cae7ac1176 (diff) |
- Merge with Linux 2.1.121.
- Bugfixes.
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/module.c b/kernel/module.c index 5225c6709..e367a747c 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -288,10 +288,6 @@ sys_init_module(const char *name_user, struct module *mod_user) goto err3; } - /* On some machines it is necessary to do something here - to make the I and D caches consistent. */ - flush_icache_range((unsigned long)mod, (unsigned long)mod + mod->size); - /* Ok, that's about all the sanity we can stomach; copy the rest. */ if (copy_from_user(mod+1, mod_user+1, mod->size-sizeof(*mod))) { @@ -299,6 +295,10 @@ sys_init_module(const char *name_user, struct module *mod_user) goto err3; } + /* On some machines it is necessary to do something here + to make the I and D caches consistent. */ + flush_icache_range((unsigned long)mod, (unsigned long)mod + mod->size); + /* Update module references. */ mod->next = mod_tmp.next; mod->refs = NULL; |