From 7bbdd58234c3b43974eafc02613113952b7a60e0 Mon Sep 17 00:00:00 2001 From: patrick Date: Thu, 6 Jul 2023 09:40:36 +0000 Subject: [PATCH] Use correct variable to check for successful allocation. ok kettenis@ --- sys/arch/arm64/dev/agintc.c | 4 ++-- 1 file 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 * Copyright (c) 2018 Mark Kettenis @@ -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; } -- 2.20.1