Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7aba36b3 authored by Mathias Nyman's avatar Mathias Nyman Committed by Jack Pham
Browse files

xhci: Fix oops happening after address device timeout



When a command times out, the command ring is first aborted,
and then stopped. If the command ring is empty when it is stopped
the stop event will point to next command which is not yet set.
xHCI tries to handle this next event often causing an oops.

Don't handle command completion events on stopped cmd ring if ring is
empty.

This patch should be backported to kernels as old as 3.7, that contain
the commit b92cc66c "xHCI: add aborting
command ring function"

Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Reported-by: default avatarGiovanni <giovanni.nervi@yahoo.com>
Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
Change-Id: I3a8b1b52c5b87578170daa3bd1eac39e4c6f963c
Git-commit: 284d20552461466b04d6bfeafeb1c47a8891b591
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent a479b876
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment