]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/host/ehci-hcd.c
ehci-hcd: Cleanup memory resources when ehci_halt fails
[karo-tx-linux.git] / drivers / usb / host / ehci-hcd.c
index 14178bbf069496aba61a03ab3589945d9bbf721a..00e77cc91053a48cf6b9ea1e5f2d5bd49b468403 100644 (file)
@@ -675,8 +675,10 @@ int ehci_setup(struct usb_hcd *hcd)
                return retval;
 
        retval = ehci_halt(ehci);
-       if (retval)
+       if (retval) {
+               ehci_mem_cleanup(ehci);
                return retval;
+       }
 
        ehci_reset(ehci);