diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-01-18 12:26:33 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-01-18 12:26:33 +0000 |
| commit | b659f64e820eb7906939841fb2c8dee5a3b1dc5f (patch) | |
| tree | 0408ce75d7e54ea5cf6aef6a0633d1daad3aa2e4 /sys/dev/sio/sio.c | |
| parent | 7c633af872312635a092d1694a046a9e0a0591e6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sio/sio.c')
| -rw-r--r-- | sys/dev/sio/sio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index bd842f46463f..be51ac329e6b 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -508,8 +508,10 @@ sioprobe(dev, xrid, rclk, noprobe) return (ENXIO); 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); |
