xhci: remove BUG() in xhci_get_endpoint_type()
authorMathias Nyman <mathias.nyman@linux.intel.com>
Wed, 24 Apr 2013 14:24:58 +0000 (17:24 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 14 Jun 2013 20:53:23 +0000 (13:53 -0700)
commit17d655543716791ebf8bb396b674fe95c07e55e4
treeaa5696acf99be46a253cd3ac9859ac8c37f2fd1c
parentbd18fd5c21b2e60d9b79a9d2ce8f38a672f560a6
xhci: remove BUG() in xhci_get_endpoint_type()

If the endpoint type is unknown, set it to 0 and fail gracefully
instead of causing a kernel panic.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-mem.c