Module Name: src
Committed By: skrll
Date: Sun Oct 21 05:32:39 UTC 2018
Modified Files:
src/sys/dev/fdt: fdt_intr.c
Log Message:
Fix sense of test in fdtbus_intr_disestablish.
Reported by yarl-baudig on port-arm.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/fdt/fdt_intr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/fdt/fdt_intr.c
diff -u src/sys/dev/fdt/fdt_intr.c:1.18 src/sys/dev/fdt/fdt_intr.c:1.19
--- src/sys/dev/fdt/fdt_intr.c:1.18 Thu Sep 6 22:54:05 2018
+++ src/sys/dev/fdt/fdt_intr.c Sun Oct 21 05:32:39 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_intr.c,v 1.18 2018/09/06 22:54:05 jmcneill Exp $ */
+/* $NetBSD: fdt_intr.c,v 1.19 2018/10/21 05:32:39 skrll Exp $ */
/*-
* Copyright (c) 2015-2018 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_intr.c,v 1.18 2018/09/06 22:54:05 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_intr.c,v 1.19 2018/10/21 05:32:39 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -184,7 +184,7 @@ fdtbus_intr_disestablish(int phandle, vo
}
}
- if (ic != NULL)
+ if (ic == NULL)
panic("%s: interrupt handle not valid", __func__);
return ic->ic_funcs->disestablish(ic->ic_dev, cookie);