diff --git a/class/vendor/net/usbh_asix.c b/class/vendor/net/usbh_asix.c index a96fa26b..9d3e973f 100644 --- a/class/vendor/net/usbh_asix.c +++ b/class/vendor/net/usbh_asix.c @@ -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)