]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: EHCI: adjust ehci_iso_stream for changes in ehci_qh
authorClemens Ladisch <clemens@ladisch.de>
Mon, 1 Mar 2010 16:18:56 +0000 (17:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 23:01:37 +0000 (16:01 -0700)
commita956be65f881397ee991d4879c36cf0546f7761d
tree9af318cc695d564e838a2bf637470d6d8ded2d9c
parent25f3bec9fc514a21be373817f2306726340e5b5a
USB: EHCI: adjust ehci_iso_stream for changes in ehci_qh

commit 1082f57abfa26590b60c43f503afb24102a37016 upstream.

The EHCI driver stores in usb_host_endpoint.hcpriv a pointer to either
an ehci_qh or an ehci_iso_stream structure, and uses the contents of the
hw_info1 field to distinguish the two cases.

After ehci_qh was split into hw and sw parts, ehci_iso_stream must also
be adjusted so that it again looks like an ehci_qh structure.

This fixes a NULL pointer access in ehci_endpoint_disable() when it
tries to access qh->hw->hw_info1.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Reported-by: Colin Fletcher <colin.m.fletcher@googlemail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-sched.c
drivers/usb/host/ehci.h