summaryrefslogtreecommitdiffstats
path: root/sys/arm64/arm64/gic_v3_its.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm64/arm64/gic_v3_its.c')
-rw-r--r--sys/arm64/arm64/gic_v3_its.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/gic_v3_its.c b/sys/arm64/arm64/gic_v3_its.c
index aef6346..c830c99 100644
--- a/sys/arm64/arm64/gic_v3_its.c
+++ b/sys/arm64/arm64/gic_v3_its.c
@@ -565,7 +565,7 @@ its_init_cpu(struct gic_v3_its_softc *sc)
* this function was called during GICv3 secondary initialization.
*/
if (sc == NULL) {
- if (device_is_attached(its_sc->dev)) {
+ if (its_sc != NULL && device_is_attached(its_sc->dev)) {
/*
* XXX ARM64TODO: This is part of the workaround that
* saves ITS software context for further use in
OpenPOWER on IntegriCloud