]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: fix null pointer dereference on ring_doorbell_for_active_rings
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 21 Jul 2013 13:36:19 +0000 (15:36 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 25 Jul 2013 15:10:09 +0000 (08:10 -0700)
commit84f0b9d6534fac7c63282cbe909f2b29b54007b0
treef8f938260a47de6d06ccb6858618708c3c312aed
parent0703458428390003e592faa1a471f6cf022a2798
xhci: fix null pointer dereference on ring_doorbell_for_active_rings

in some cases where device is attched to xhci port and do not responding,
for example ath9k_htc with stalled firmware, kernel will
crash on ring_doorbell_for_active_rings.
This patch check if pointer exist before it is used.

This patch should be backported to kernels as old as 2.6.35, that
contain the commit c71425632bfddce35c8d4d166b14792207860e9f "USB: xhci:
Correct assumptions about number of rings per endpoint"

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
drivers/usb/host/xhci-ring.c