Validate number of iso. DMA channels.

This commit is contained in:
Hidetoshi Shimokawa 2003-08-12 13:01:27 +00:00
parent 30e27d9623
commit f40a29157e

View File

@ -600,6 +600,8 @@ fwohci_init(struct fwohci_softc *sc, device_t dev)
break;
sc->fc.nisodma = i;
device_printf(dev, "No. of Isochronous channel is %d.\n", i);
if (i == 0)
return (ENXIO);
sc->fc.arq = &sc->arrq.xferq;
sc->fc.ars = &sc->arrs.xferq;