usb: dwc3: core: cope with NULL pdata
authorFelipe Balbi <balbi@ti.com>
Wed, 14 Aug 2013 18:21:23 +0000 (13:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:23:09 +0000 (12:23 -0700)
commitbb674907111272ca40926ca3d3bad4046fffed52
tree54717e6e7813ce21692c4133d61dbe1b59a04c2c
parente57e780b346a7277fdd3bde765d9d8728b99bfa1
usb: dwc3: core: cope with NULL pdata

if pdata is a NULL pointer we could cause a
kernel oops when probing the driver. Make sure
to cope with systems which won't pass pdata
to the driver.

Tested-by: Paul Zimmerman <paulz@synopsys.com>
Reported-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c