xhci: Remove BUG_ON in xhci_get_input_control_ctx.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 24 Apr 2013 00:11:14 +0000 (17:11 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 14 Jun 2013 20:50:17 +0000 (13:50 -0700)
commit92f8e76769c687a7c38c5067ff375c187666ac18
tree47b8efd7542d4e4c4dce5050317cd26fc0fa0602
parent29f9d54b63a6186f1bed3fc15eeab7f98947eebd
xhci: Remove BUG_ON in xhci_get_input_control_ctx.

Fail gracefully, instead of causing the kernel to panic, if the input
control context doesn't have the right type (XHCI_CTX_TYPE_INPUT).  Push
finding the pointer to the input control context up into functions that
can fail.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: John Youn <johnyoun@synopsys.com>
drivers/usb/host/xhci-dbg.c
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c