Fix an logic bug which caused jumbo buffers to not be synced.
Reported and tested by: Michael Moll MFC after: 3 days
This commit is contained in:
parent
e93ad740a0
commit
aa8cbdbf67
@ -1022,7 +1022,7 @@ bge_newbuf_jumbo(struct bge_softc *sc, int i)
|
||||
return (error);
|
||||
}
|
||||
|
||||
if (sc->bge_cdata.bge_rx_jumbo_chain[i] == NULL) {
|
||||
if (sc->bge_cdata.bge_rx_jumbo_chain[i] != NULL) {
|
||||
bus_dmamap_sync(sc->bge_cdata.bge_mtag_jumbo,
|
||||
sc->bge_cdata.bge_rx_jumbo_dmamap[i], BUS_DMASYNC_POSTREAD);
|
||||
bus_dmamap_unload(sc->bge_cdata.bge_mtag_jumbo,
|
||||
|
Loading…
Reference in New Issue
Block a user