We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcf42aa + 6f3c4fb commit 1b49daeCopy full SHA for 1b49dae
drivers/usb/chipidea/udc.c
@@ -949,6 +949,15 @@ static int isr_setup_status_phase(struct ci_hdrc *ci)
949
int retval;
950
struct ci_hw_ep *hwep;
951
952
+ /*
953
+ * Unexpected USB controller behavior, caused by bad signal integrity
954
+ * or ground reference problems, can lead to isr_setup_status_phase
955
+ * being called with ci->status equal to NULL.
956
+ * If this situation occurs, you should review your USB hardware design.
957
+ */
958
+ if (WARN_ON_ONCE(!ci->status))
959
+ return -EPIPE;
960
+
961
hwep = (ci->ep0_dir == TX) ? ci->ep0out : ci->ep0in;
962
ci->status->context = ci;
963
ci->status->complete = isr_setup_status_complete;
0 commit comments