mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
RTL8139: Fix bogus (but harmless) TX buffer index in send_raw()
This was getting fixed up by the loop that chooses the next TX buffer anyway, but let's do this correctly. Fixes #522.
This commit is contained in:
parent
b65bedd610
commit
54caeb1f1a
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ void RTL8139NetworkAdapter::send_raw(const u8* data, int length)
|
||||||
#ifdef RTL8139_DEBUG
|
#ifdef RTL8139_DEBUG
|
||||||
kprintf("RTL8139NetworkAdapter: chose buffer %d @ %p\n", hw_buffer, m_tx_buffer_addr[hw_buffer]);
|
kprintf("RTL8139NetworkAdapter: chose buffer %d @ %p\n", hw_buffer, m_tx_buffer_addr[hw_buffer]);
|
||||||
#endif
|
#endif
|
||||||
m_tx_next_buffer = hw_buffer + 1 % 4;
|
m_tx_next_buffer = (hw_buffer + 1) % 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy((void*)(m_tx_buffer_addr[hw_buffer]), data, length);
|
memcpy((void*)(m_tx_buffer_addr[hw_buffer]), data, length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue