mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Simplify module_get_kallsym() by dropping length arg
module_get_kallsym() could in theory truncate module symbol name to fit in buffer, but nobody does this. Always use KSYM_NAME_LEN + 1 bytes for name. Suggested by lg^WRusty. Signed-off-by: Alexey Dobriyan <[email protected]> Acked-by: Rusty Russell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
55955aad7c
commit
ae84e32470
3 changed files with 6 additions and 6 deletions
|
|
@ -312,7 +312,7 @@ static int get_ksymbol_mod(struct kallsym_iter *iter)
|
|||
{
|
||||
iter->owner = module_get_kallsym(iter->pos - kallsyms_num_syms,
|
||||
&iter->value, &iter->type,
|
||||
iter->name, sizeof(iter->name));
|
||||
iter->name);
|
||||
if (iter->owner == NULL)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue