From 1190adfbbc6cf267343075fe103ab3b04e5c06db Mon Sep 17 00:00:00 2001 From: raj Date: Wed, 19 Nov 2008 17:07:01 +0000 Subject: Improve error handling in pcib_mbus_identify(). --- sys/arm/mv/mv_pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arm') diff --git a/sys/arm/mv/mv_pci.c b/sys/arm/mv/mv_pci.c index e4a2134..6925ab1 100644 --- a/sys/arm/mv/mv_pci.c +++ b/sys/arm/mv/mv_pci.c @@ -369,8 +369,10 @@ pcib_mbus_identify(driver_t *driver, device_t parent) &sc->sc_rid, sc->sc_info->op_base, sc->sc_info->op_base + sc->sc_info->op_size - 1, sc->sc_info->op_size, RF_ACTIVE); - if (sc->sc_res == NULL) + if (sc->sc_res == NULL) { device_printf(parent, "Could not map pcib memory\n"); + break; + } sc->sc_bst = rman_get_bustag(sc->sc_res); sc->sc_bsh = rman_get_bushandle(sc->sc_res); -- cgit v1.1