update(class/vendor/net/usbh_asix): ignore the remain data that len is less than 4
This commit is contained in:
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);
|
usbh_asix_eth_input(buf, len);
|
||||||
g_asix_rx_length -= (len + 4);
|
g_asix_rx_length -= (len + 4);
|
||||||
data_offset += (len + 4);
|
data_offset += (len + 4);
|
||||||
|
|
||||||
|
if (g_asix_rx_length < 4) {
|
||||||
|
g_asix_rx_length = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
#if CONFIG_USBHOST_ASIX_ETH_MAX_RX_SIZE <= (16 * 1024)
|
#if CONFIG_USBHOST_ASIX_ETH_MAX_RX_SIZE <= (16 * 1024)
|
||||||
|
|||||||
Reference in New Issue
Block a user