]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0daec37fb5676902ce3068b5baa4dc07a6cf15a6
tree54717e6e7813ce21692c4133d61dbe1b59a04c2c
parent941da27dcbda2df48ba633194fccb04eb1e1e1b2
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