[Bug 286045] [iicbus] panic page fault on start by devd in L635: sc->intr_handler(sc->intr_ctx, sc->intr_buf, actual);
Date: Sat, 26 Apr 2025 16:10:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286045
Vladimir Kondratyev <wulf@freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wulf@freebsd.org
--- Comment #4 from Vladimir Kondratyev <wulf@freebsd.org> ---
I think it is regression from daa098cc37b9
Test this patch:
diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c
index eeabf817616..d82beb52d58 100644
--- a/sys/dev/iicbus/iichid.c
+++ b/sys/dev/iicbus/iichid.c
@@ -630,7 +630,7 @@ iichid_intr(void *context)
error = iichid_cmd_read(sc, sc->intr_buf, sc->intr_bufsize, &actual);
THREAD_NO_SLEEPING();
if (error == 0) {
- if (sc->power_on) {
+ if (sc->power_on && sc->open) {
if (actual != 0)
sc->intr_handler(sc->intr_ctx, sc->intr_buf,
actual);
--
You are receiving this mail because:
You are the assignee for the bug.