tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: fdtbus_intr_establish



On 20/10/2018 16:55, yarl-baudig%mailoo.org@localhost wrote:
Am I wrong?


diff --git a/sys/dev/fdt/fdt_intr.c b/sys/dev/fdt/fdt_intr.c
index fb0e56f76f6b..282d2ceb2710 100644
--- a/sys/dev/fdt/fdt_intr.c
+++ b/sys/dev/fdt/fdt_intr.c
@@ -184,7 +184,7 @@ fdtbus_intr_disestablish(int phandle, void *cookie)
          }
      }

-    if (ic != NULL)
+    if (ic == NULL)
          panic("%s: interrupt handle not valid", __func__);

      return ic->ic_funcs->disestablish(ic->ic_dev, cookie);


Fixed.

Thanks,
Nick


Home | Main Index | Thread Index | Old Index