Repository navigation
Commit 708e0ad
Jessica Yu
module: avoid setting info->name early in case we can fall back to info->mod->name
In setup_load_info(), info->name (which contains the name of the module,
mostly used for early logging purposes before the module gets set up)
gets unconditionally assigned if .modinfo is missing despite the fact
that there is an if (!info->name) check near the end of the function.
Avoid assigning a placeholder string to info->name if .modinfo doesn't
exist, so that we can fall back to info->mod->name later on.
Fixes: 5fdc7db ("module: setup load info before module_sig_check()")
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Jessica Yu <jeyu@kernel.org>1 parent e9f35f6 commit 708e0ad
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3059 | 3059 | | |
3060 | 3060 | | |
3061 | 3061 | | |
3062 | | - | |
3063 | | - | |
3064 | | - | |
| 3062 | + | |
3065 | 3063 | | |
3066 | 3064 | | |
3067 | 3065 | | |
| |||
3076 | 3074 | | |
3077 | 3075 | | |
3078 | 3076 | | |
3079 | | - | |
| 3077 | + | |
| 3078 | + | |
3080 | 3079 | | |
3081 | 3080 | | |
3082 | 3081 | | |
3083 | 3082 | | |
3084 | 3083 | | |
3085 | 3084 | | |
3086 | | - | |
| 3085 | + | |
3087 | 3086 | | |
3088 | 3087 | | |
3089 | 3088 | | |
| |||
0 commit comments