mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
USB: Fix gadget_wrapper NULL pointer bug.
This commit is contained in:
@@ -1616,7 +1616,9 @@ int dwc_vbus_status( void )
|
||||
{
|
||||
#ifdef CONFIG_USB20_OTG
|
||||
dwc_otg_pcd_t *pcd = 0;
|
||||
pcd = gadget_wrapper->pcd;
|
||||
if(gadget_wrapper){
|
||||
pcd = gadget_wrapper->pcd;
|
||||
}
|
||||
|
||||
if(!pcd)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user