Commit b842a3af authored by Zwane Mwaikambo's avatar Zwane Mwaikambo Committed by Greg Kroah-Hartman

[PATCH] pci_free_consistent on ohci initialisation failure

The trace at the end of the message shows the init failure.
parent dbe9d83a
......@@ -621,9 +621,12 @@ static void ohci_stop (struct usb_hcd *hcd)
hc_reset (ohci);
ohci_mem_cleanup (ohci);
pci_free_consistent (ohci->hcd.pdev, sizeof *ohci->hcca,
ohci->hcca, ohci->hcca_dma);
if (ohci->hcca) {
pci_free_consistent (ohci->hcd.pdev, sizeof *ohci->hcca,
ohci->hcca, ohci->hcca_dma);
ohci->hcca = NULL;
ohci->hcca_dma = 0;
}
}
/*-------------------------------------------------------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment