Merged from sys/dev/sio/sio.c revision 1.418.
This commit is contained in:
parent
cd3d56c01e
commit
bfb36a1d62
@ -884,8 +884,10 @@ sioprobe(dev, xrid, rclk, noprobe)
|
||||
#endif
|
||||
|
||||
com = malloc(sizeof(*com), M_DEVBUF, M_NOWAIT | M_ZERO);
|
||||
if (com == NULL)
|
||||
if (com == NULL) {
|
||||
bus_release_resource(dev, SYS_RES_IOPORT, rid, port);
|
||||
return (ENOMEM);
|
||||
}
|
||||
device_set_softc(dev, com);
|
||||
com->bst = rman_get_bustag(port);
|
||||
com->bsh = rman_get_bushandle(port);
|
||||
|
@ -884,8 +884,10 @@ sioprobe(dev, xrid, rclk, noprobe)
|
||||
#endif
|
||||
|
||||
com = malloc(sizeof(*com), M_DEVBUF, M_NOWAIT | M_ZERO);
|
||||
if (com == NULL)
|
||||
if (com == NULL) {
|
||||
bus_release_resource(dev, SYS_RES_IOPORT, rid, port);
|
||||
return (ENOMEM);
|
||||
}
|
||||
device_set_softc(dev, com);
|
||||
com->bst = rman_get_bustag(port);
|
||||
com->bsh = rman_get_bushandle(port);
|
||||
|
Loading…
Reference in New Issue
Block a user