Oleksij Rempel d66eaf9f89 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 e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 "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
2013-07-25 08:10:09 -07:00
..
2012-11-21 13:27:17 -08:00
2013-05-27 11:00:52 +09:00
2013-04-23 10:10:29 -07:00
2013-07-02 13:43:38 -07:00
2012-11-21 13:27:17 -08:00
2012-11-21 13:27:17 -08:00
2013-05-30 21:34:31 +09:00
2013-06-24 16:20:43 -07:00
2012-02-13 14:32:34 -08:00
2012-11-21 13:27:16 -08:00
2011-03-31 11:26:23 -03:00
2012-05-01 21:33:37 -07:00
2012-11-21 13:27:16 -08:00
2013-06-06 11:16:44 -07:00
2013-05-27 11:00:52 +09:00
2012-11-21 13:27:16 -08:00
2013-05-27 11:00:52 +09:00
2012-11-21 13:27:16 -08:00
2013-05-27 11:00:52 +09:00
2013-05-27 11:00:52 +09:00
2012-11-21 13:27:17 -08:00
2012-11-21 13:27:17 -08:00
2013-01-24 13:59:26 -08:00
2013-01-25 12:41:02 -08:00
2013-01-24 13:42:09 -08:00
2013-06-08 21:27:51 -07:00