summaryrefslogtreecommitdiffstats
path: root/drivers/usb/mon
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2012-10-16 13:17:43 -0700
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2012-10-25 13:13:47 -0700
commit43a09f7fb01fa1e091416a2aa49b6c666458c1ee (patch)
tree93ea7c67e4bff6051cc652878b71fe75fd21825d /drivers/usb/mon
parent8daf8b6086f9d575200cd0aa3797e26137255609 (diff)
downloadlinux-43a09f7fb01fa1e091416a2aa49b6c666458c1ee.tar.bz2
xhci: Fix potential NULL ptr deref in command cancellation.
The command cancellation code doesn't check whether find_trb_seg() couldn't find the segment that contains the TRB to be canceled. This could cause a NULL pointer deference later in the function when next_trb is called. It's unlikely to happen unless something is wrong with the command ring pointers, so add some debugging in case it happens. This patch should be backported to stable kernels as old as 3.0, that contain the commit b63f4053cc8aa22a98e3f9a97845afe6c15d0a0d "xHCI: handle command after aborting the command ring". Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/usb/mon')
0 files changed, 0 insertions, 0 deletions