reset rx length when pbuf allocs failed

This commit is contained in:
sakumisu
2023-11-22 21:43:57 +08:00
parent 5b32482c3e
commit b7d02b7125

View File

@@ -488,6 +488,7 @@ find_class:
pmg_offset += pmsg->MessageLength;
g_rndis_rx_length -= pmsg->MessageLength;
} else {
g_rndis_rx_length = 0;
USB_LOG_ERR("No memory to alloc pbuf for rndis rx\r\n");
}
}