|
@@ -4017,7 +4017,7 @@ unsigned long module_kallsyms_lookup_name(const char *name)
|
|
|
|
|
|
/* Don't lock: we're in enough trouble already. */
|
|
/* Don't lock: we're in enough trouble already. */
|
|
preempt_disable();
|
|
preempt_disable();
|
|
- if ((colon = strchr(name, ':')) != NULL) {
|
|
|
|
|
|
+ if ((colon = strnchr(name, MODULE_NAME_LEN, ':')) != NULL) {
|
|
if ((mod = find_module_all(name, colon - name, false)) != NULL)
|
|
if ((mod = find_module_all(name, colon - name, false)) != NULL)
|
|
ret = mod_find_symname(mod, colon+1);
|
|
ret = mod_find_symname(mod, colon+1);
|
|
} else {
|
|
} else {
|