usb: dwc3: core: Fix error handling bugs in driver probe

If dwc3_core_get_phy() fails control going to err0 label
which calls destroy_workqueue() without allocating workqueue.
This results into NULL pointer dereference. If
alloc_ordered_workqueue() fails driver returns error and exits
probe, instead of restoring res->start. Fix these issues by
adding new label err1 to call destroy_workqueue() above err0
label and update goto labels accordingly.

Change-Id: I709d5b9a3b639a00733ef61d3c377cc3d2c83f7f
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
1 file changed