]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xHCI: cancel command after command timeout
authorElric Fu <elricfu1@gmail.com>
Wed, 27 Jun 2012 08:31:52 +0000 (16:31 +0800)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:28:35 +0000 (16:28 -0800)
commit64ce119dcdc6f6fa9fe5853d615bb409851b4788
tree7a9faf3d1bbd2ac0011d7437cbf30e995f6a1653
parent658890b8c2e3076c661ea986e1ebb7e9d1b24936
xHCI: cancel command after command timeout

commit 6e4468b9a0793dfb53eb80d9fe52c739b13b27fd upstream.

The patch is used to cancel command when the command isn't
acknowledged and a timeout occurs.

This patch should be backported to kernels as old as 3.0, that contain
the commit 7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an
assertion to check for virt_dev=0 bug." That commit papers over a NULL
pointer dereference, and this patch fixes the underlying issue that
caused the NULL pointer dereference.

Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h