|
@@ -1118,6 +1118,10 @@ static void xhci_handle_cmd_reset_ep(struct xhci_hcd *xhci, int slot_id,
|
|
|
if (xhci->quirks & XHCI_RESET_EP_QUIRK) {
|
|
|
struct xhci_command *command;
|
|
|
command = xhci_alloc_command(xhci, false, false, GFP_ATOMIC);
|
|
|
+ if (!command) {
|
|
|
+ xhci_warn(xhci, "WARN Cannot submit cfg ep: ENOMEM\n");
|
|
|
+ return;
|
|
|
+ }
|
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_quirks,
|
|
|
"Queueing configure endpoint command");
|
|
|
xhci_queue_configure_endpoint(xhci, command,
|