usb: dwc3: fix NULL pointer issue
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 14 May 2020 05:55:11 +0000 (13:55 +0800)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 22 May 2020 13:22:36 +0000 (15:22 +0200)
commit58221d7e876c2f75ae7696aad853d81ccd76fb7a
treece67d054dcb49ca6146cf62be96170362bbc905a
parent94ed66194f150c308d1713965a28abce3ac6e200
usb: dwc3: fix NULL pointer issue

The phy_bulk pointer *usb_phys is used before allocated,
fix it by using a phy_bulk variable instead in
xhci_dwc3_platdata struct

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
drivers/usb/host/xhci-dwc3.c