[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250918201109.24620-14-julian.lagattuta@gmail.com>
Date: Thu, 18 Sep 2025 16:11:16 -0400
From: julian-lagattuta <julian.lagattuta@...il.com>
To: Luis Chamberlain <mcgrof@...nel.org>,
Petr Pavlu <petr.pavlu@...e.com>
Cc: Sami Tolvanen <samitolvanen@...gle.com>,
Daniel Gomez <da.gomez@...sung.com>,
linux-modules@...r.kernel.org,
linux-kernel@...r.kernel.org,
julian-lagattuta <julian.lagattuta@...il.com>
Subject: [PATCH 6/6] module: comment describing new codepath
added comment so future authors know about this codepath
Signed-off-by: julian-lagattuta <julian.lagattuta@...il.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
Powered by blists - more mailing lists