Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 2476d26

Browse files
PzqqtShirayuki39
authored andcommitted
kernel: module.c: Force loading of modules that fail symbol version checks
- Some kernel changes may break kmi, at which point the kernel will refuse to load some vendor modules. - But certain modules are critical for device startup. If they are not successfully loaded, not only can't boot, even can't enter recovery mode (because the same kernel is used to start Android and start recovery). At this time, user can only flash the stock boot image through fastboot. This is very inconvenient for users. - Therefore, we force the loading of modules that fail the symbol version check to ensure that Android / Recovery can start normally. But also keep the warning to remind the developer to fix it. Signed-off-by: Pzqqt <[email protected]>
1 parent ddb77c8 commit 2476d26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,9 +1352,9 @@ static int check_version(const struct load_info *info,
13521352
return 1;
13531353

13541354
bad_version:
1355-
pr_warn("%s: disagrees about version of symbol %s\n",
1355+
pr_warn("%s: disagrees about version of symbol %s, but ignore...\n",
13561356
info->name, symname);
1357-
return 0;
1357+
return 1;
13581358
}
13591359

13601360
static inline int check_modstruct_version(const struct load_info *info,

0 commit comments

Comments
 (0)