]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/usb/host/xhci.c
USB: visor.h: checkpatch cleanups
[mv-sheeva.git] / drivers / usb / host / xhci.c
index 59f38a5f2fe6c76175303adea599880f1feb99e7..40e0a0c221b82cddfbcb6875f87cdaafcf390c16 100644 (file)
@@ -1457,6 +1457,7 @@ void xhci_endpoint_reset(struct usb_hcd *hcd,
        }
        virt_ep->stopped_td = NULL;
        virt_ep->stopped_trb = NULL;
+       virt_ep->stopped_stream = 0;
        spin_unlock_irqrestore(&xhci->lock, flags);
 
        if (ret)
@@ -1746,6 +1747,7 @@ cleanup:
        for (i = 0; i < num_eps; i++) {
                ep_index = xhci_get_endpoint_index(&eps[i]->desc);
                xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info);
+               vdev->eps[ep_index].stream_info = NULL;
                /* FIXME Unset maxPstreams in endpoint context and
                 * update deq ptr to point to normal string ring.
                 */
@@ -1826,6 +1828,7 @@ int xhci_free_streams(struct usb_hcd *hcd, struct usb_device *udev,
        for (i = 0; i < num_eps; i++) {
                ep_index = xhci_get_endpoint_index(&eps[i]->desc);
                xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info);
+               vdev->eps[ep_index].stream_info = NULL;
                /* FIXME Unset maxPstreams in endpoint context and
                 * update deq ptr to point to normal string ring.
                 */