]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: dwc3: core: fix incorrect usage of resource pointer
authorKishon Vijay Abraham I <kishon@ti.com>
Tue, 21 Aug 2012 09:26:16 +0000 (14:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:37 +0000 (10:39 -0700)
commit1e210fa515c902c869bcd27679ae305b468a73f5
tree15a4a01d0c98bc13fb8088b9c1c41e28ed6af782
parent543ab2172cd454c46231762331abd24a90a272b0
usb: dwc3: core: fix incorrect usage of resource pointer

commit 066618bc350cc6035c3a0fc559a8ac02f55785a9 upstream.

Populate the resources for xhci afresh instead of directly using the
*struct resource* of core. *resource* structure has parent, sibling,
child pointers which should be filled only by resource API's. By
directly using the *resource* pointer of core in xhci, these parent,
sibling, child pointers are already populated even before
*platform_device_add* causing side effects.

Reported-by: Ruchika Kharwar <ruchika@ti.com>
Tested-by: Moiz Sonasath <m-sonasath@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c