Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2008 17:07:01 +0000 (UTC)
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185098 - head/sys/arm/mv
Message-ID:  <200811191707.mAJH71U9022988@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: raj
Date: Wed Nov 19 17:07:01 2008
New Revision: 185098
URL: http://svn.freebsd.org/changeset/base/185098

Log:
  Improve error handling in pcib_mbus_identify().

Modified:
  head/sys/arm/mv/mv_pci.c

Modified: head/sys/arm/mv/mv_pci.c
==============================================================================
--- head/sys/arm/mv/mv_pci.c	Wed Nov 19 16:59:19 2008	(r185097)
+++ head/sys/arm/mv/mv_pci.c	Wed Nov 19 17:07:01 2008	(r185098)
@@ -369,8 +369,10 @@ pcib_mbus_identify(driver_t *driver, dev
 		    &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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811191707.mAJH71U9022988>