We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1bccd9 + 578d90a commit efd3de1Copy full SHA for efd3de1
1 file changed
common/usbx_host_classes/src/ux_host_class_asix_thread.c
@@ -440,7 +440,10 @@ USB_NETWORK_DEVICE_TYPE *ux_nx_device;
440
current_packet = asix -> ux_host_class_asix_xmit_queue;
441
442
/* Get the next packet associated with the first packet. */
443
- next_packet = current_packet -> nx_packet_queue_next;
+ if(current_packet != UX_NULL)
444
+ next_packet = current_packet -> nx_packet_queue_next;
445
+ else
446
+ next_packet = UX_NULL;
447
448
/* Parse all these packets that were scheduled. */
449
while (current_packet != UX_NULL)
0 commit comments