mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-05-09 00:21:44 +08:00
update(class/vendor/net/usbh_asix): ignore the remain data that len is less than 4
This commit is contained in:
parent
6c92681e48
commit
adee4b6727
4
class/vendor/net/usbh_asix.c
vendored
4
class/vendor/net/usbh_asix.c
vendored
@ -731,6 +731,10 @@ find_class:
|
||||
usbh_asix_eth_input(buf, len);
|
||||
g_asix_rx_length -= (len + 4);
|
||||
data_offset += (len + 4);
|
||||
|
||||
if (g_asix_rx_length < 4) {
|
||||
g_asix_rx_length = 0;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
#if CONFIG_USBHOST_ASIX_ETH_MAX_RX_SIZE <= (16 * 1024)
|
||||
|
Loading…
x
Reference in New Issue
Block a user