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:
Pyun YongHyeon 2011-02-18 23:18:08 +00:00
parent 24507bc168
commit a5db292f7b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218828

View file

@ -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);
}