mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 13:44:55 +00:00
Fix a long standing bug where driver handed over RX descriptor
ownership to controller before completion of access to the descriptor. Driver is faking up status word so it should not give ownership to controller until it completes RX processing.
This commit is contained in:
parent
24507bc168
commit
a5db292f7b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218828
|
@ -2671,7 +2671,6 @@ dc_pnic_rx_bug_war(struct dc_softc *sc, int idx)
|
|||
* the status word to make it look like a successful
|
||||
* frame reception.
|
||||
*/
|
||||
dc_newbuf(sc, i, 0);
|
||||
bcopy(ptr, mtod(m, char *), total_len);
|
||||
cur_rx->dc_status = htole32(rxstat | DC_RXSTAT_FIRSTFRAG);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue