]> git.sur5r.net Git - u-boot/commit
usb: ehci: Do not de-init uninited controllers
authorMarek Vasut <marex@denx.de>
Sat, 14 Dec 2013 01:03:11 +0000 (02:03 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 18 Dec 2013 18:53:19 +0000 (19:53 +0100)
commit1e1be6d478c7c2cddf97e2623dd5c4c10bc23020
tree6781728fbd8a026d88f0e614cdcba625a36bd7e3
parent8fb83547b93cd30a803eca1fec005b3d2b86a21f
usb: ehci: Do not de-init uninited controllers

In case the controller is not initialized, we shall not de-initialize it.
As the control structure will not be filled, we will produce a null ptr
dereference if the controller is not inited.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
drivers/usb/host/ehci-hcd.c