diff options
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/vpci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vpci.c b/sys/arch/sparc64/dev/vpci.c index a6ce5a80a2d..02a62c53745 100644 --- a/sys/arch/sparc64/dev/vpci.c +++ b/sys/arch/sparc64/dev/vpci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vpci.c,v 1.31 2020/06/25 21:43:41 jmatthew Exp $ */ +/* $OpenBSD: vpci.c,v 1.32 2020/10/24 05:07:47 jmatthew Exp $ */ /* * Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org> * @@ -273,6 +273,8 @@ vpci_init_msi(struct vpci_softc *sc, struct vpci_pbm *pbm) /* One eq per cpu, limited by the number of eqs. */ num_eq = min(ncpus, getpropint(sc->sc_node, "#msi-eqs", 36)); + if (num_eq == 0) + return; if (OF_getprop(sc->sc_node, "msi-address-ranges", msi_addr_range, sizeof(msi_addr_range)) <= 0) |