summaryrefslogtreecommitdiffstats
path: root/sys/dev/dc
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-02-18 23:18:08 +0000
committeryongari <yongari@FreeBSD.org>2011-02-18 23:18:08 +0000
commitcb13a9a185695e6cf124ad0f9f93fb98cda5f329 (patch)
tree82378242d3293fe42b1d808d8df1de02c3abbfc6 /sys/dev/dc
parentd469e7db2e02d188fdf4727618e1a47fb319c248 (diff)
downloadFreeBSD-src-cb13a9a185695e6cf124ad0f9f93fb98cda5f329.zip
FreeBSD-src-cb13a9a185695e6cf124ad0f9f93fb98cda5f329.tar.gz
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.
Diffstat (limited to 'sys/dev/dc')
-rw-r--r--sys/dev/dc/if_dc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index 52e4d71..75f10fc 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -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);
}
OpenPOWER on IntegriCloud