summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2023-07-06 09:40:37 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2023-07-06 09:40:37 +0000
commit72453907afb2f3c8bc1f2a3508b1789d35067ba6 (patch)
tree77e1ed74a88204a5b5b9244f87501e70730f8235
parent533aca685f5b80860ef02212a05256572bda2f7c (diff)
Use correct variable to check for successful allocation.
ok kettenis@
-rw-r--r--sys/arch/arm64/dev/agintc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/agintc.c b/sys/arch/arm64/dev/agintc.c
index d725ed7ddc4..27149783a20 100644
--- a/sys/arch/arm64/dev/agintc.c
+++ b/sys/arch/arm64/dev/agintc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agintc.c,v 1.50 2023/06/18 16:25:21 kettenis Exp $ */
+/* $OpenBSD: agintc.c,v 1.51 2023/07/06 09:40:36 patrick Exp $ */
/*
* Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn <drahn@dalerahn.com>
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
@@ -339,7 +339,7 @@ agintc_attach(struct device *parent, struct device *self, void *aux)
}
sc->sc_pend = agintc_dmamem_alloc(sc->sc_dmat,
GICR_PEND_SIZE, GICR_PEND_SIZE);
- if (sc->sc_prop == NULL) {
+ if (sc->sc_pend == NULL) {
printf(": can't alloc LPI pending table\n");
goto unmap;
}