diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index 17314691d3cc..276abd7b7ff7 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -738,7 +738,7 @@ sys_delete_module(const char __user *name_user, unsigned int flags) | |||
738 | mutex_lock(&module_mutex); | 738 | mutex_lock(&module_mutex); |
739 | } | 739 | } |
740 | /* Store the name of the last unloaded module for diagnostic purposes */ | 740 | /* Store the name of the last unloaded module for diagnostic purposes */ |
741 | sprintf(last_unloaded_module, mod->name); | 741 | strlcpy(last_unloaded_module, mod->name, sizeof(last_unloaded_module)); |
742 | free_module(mod); | 742 | free_module(mod); |
743 | 743 | ||
744 | out: | 744 | out: |