fix TX buffer length in ethmac
This commit is contained in:
parent
93d0401b71
commit
e7bca6d0c7
|
@ -346,7 +346,7 @@ impl Device for EthernetDevice {
|
||||||
|
|
||||||
let sl = unsafe {
|
let sl = unsafe {
|
||||||
slice::from_raw_parts_mut(self.tx_desc_buf[self.tx_cur_desc + 2] as * mut u8,
|
slice::from_raw_parts_mut(self.tx_desc_buf[self.tx_cur_desc + 2] as * mut u8,
|
||||||
ETH_TX_BUFFER_SIZE)
|
length)
|
||||||
};
|
};
|
||||||
Ok(TxBuffer(sl, self))
|
Ok(TxBuffer(sl, self))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue