added comment so future authors know about this codepath Signed-off-by: julian-lagattuta <julian.lagatt...@gmail.com> --- kernel/module/main.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/kernel/module/main.c b/kernel/module/main.c index 256e30259bcf..f4ce431163fa 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -3220,6 +3220,11 @@ static int module_patient_check_exists(const char *name, */ if (old && old->state == MODULE_STATE_LIVE) return -EEXIST; + + /* + * Can occur if the module was forcefully unloaded after + * its initcall crashed. + */ return -EBUSY; } -- 2.45.2