diff options
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/insmod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 3a8201feb..f45a59465 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -452,7 +452,7 @@ enum { | |||
452 | /* The system calls unchanged between 2.0 and 2.1. */ | 452 | /* The system calls unchanged between 2.0 and 2.1. */ |
453 | 453 | ||
454 | unsigned long create_module(const char *, size_t); | 454 | unsigned long create_module(const char *, size_t); |
455 | int delete_module(const char *); | 455 | int delete_module(const char *module, unsigned int flags); |
456 | 456 | ||
457 | 457 | ||
458 | #endif /* module.h */ | 458 | #endif /* module.h */ |
@@ -4141,18 +4141,18 @@ int insmod_main(int argc, char **argv) | |||
4141 | * now we can load them directly into the kernel memory | 4141 | * now we can load them directly into the kernel memory |
4142 | */ | 4142 | */ |
4143 | if (!obj_load_progbits(fp, f, (char*)m_addr)) { | 4143 | if (!obj_load_progbits(fp, f, (char*)m_addr)) { |
4144 | delete_module(m_name); | 4144 | delete_module(m_name, 0); |
4145 | goto out; | 4145 | goto out; |
4146 | } | 4146 | } |
4147 | #endif | 4147 | #endif |
4148 | 4148 | ||
4149 | if (!obj_relocate(f, m_addr)) { | 4149 | if (!obj_relocate(f, m_addr)) { |
4150 | delete_module(m_name); | 4150 | delete_module(m_name, 0); |
4151 | goto out; | 4151 | goto out; |
4152 | } | 4152 | } |
4153 | 4153 | ||
4154 | if (!new_init_module(m_name, f, m_size)) { | 4154 | if (!new_init_module(m_name, f, m_size)) { |
4155 | delete_module(m_name); | 4155 | delete_module(m_name, 0); |
4156 | goto out; | 4156 | goto out; |
4157 | } | 4157 | } |
4158 | 4158 | ||