xhci: Add a global command queue
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / xhci.c
index 9a4c6dfa26dc927eab21dacd66966edf5308918b..8dbc410321770fbe779cd02944cc78afc2aa2128 100644 (file)
@@ -3732,7 +3732,6 @@ int xhci_alloc_dev(struct usb_hcd *hcd, struct usb_device *udev)
                                timeleft == 0 ? "Timeout" : "Signal");
                /* cancel the enable slot request */
                ret = xhci_cancel_cmd(xhci, NULL, command->command_trb);
-               kfree(command);
                return ret;
        }
 
@@ -3891,7 +3890,6 @@ static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev,
                          timeleft == 0 ? "Timeout" : "Signal", act);
                /* cancel the address device command */
                ret = xhci_cancel_cmd(xhci, NULL, command->command_trb);
-               kfree(command);
                if (ret < 0)
                        return ret;
                return -ETIME;