Call mwl_rxdma_cleanup() if there was an error setting up the RX DMA.
This commit is contained in:
parent
38d61195b8
commit
16d452b4bc
@ -2303,8 +2303,10 @@ mwl_dma_setup(struct mwl_softc *sc)
|
||||
int error, i;
|
||||
|
||||
error = mwl_rxdma_setup(sc);
|
||||
if (error != 0)
|
||||
if (error != 0) {
|
||||
mwl_rxdma_cleanup(sc);
|
||||
return error;
|
||||
}
|
||||
|
||||
for (i = 0; i < MWL_NUM_TX_QUEUES; i++) {
|
||||
error = mwl_txdma_setup(sc, &sc->sc_txq[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user