usb: xhci: Fix a potential NULL pointer dereference
authorSergey Temerkhanov <s.temerkhanov@gmail.com>
Mon, 17 Aug 2015 12:38:07 +0000 (15:38 +0300)
committerMarek Vasut <marex@denx.de>
Wed, 19 Aug 2015 20:30:20 +0000 (22:30 +0200)
commita5ccda47f1587180b70c634ba4cb7f8d151f408a
tree5e2f25727039cf35067eadb8f7834e5dfb017240
parente8d056989a7302eda4e3ed263a375fd175a4e15f
usb: xhci: Fix a potential NULL pointer dereference

This patch fixes a potential NULL pointer dereference arising on
non-present/non-initialized xHCI controllers and adds some error
handling to xHCI code

Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
drivers/usb/host/xhci.c