fix TX buffer length in ethmac

This commit is contained in:
Sebastien Bourdeauducq 2017-08-07 10:47:39 +08:00
parent 93d0401b71
commit e7bca6d0c7
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ impl Device for EthernetDevice {
let sl = unsafe {
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))
} else {