mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
Improve error handling in pcib_mbus_identify().
This commit is contained in:
parent
0d16312b46
commit
a715909b3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185098
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user