diff options
author | Roger Quadros <rogerq@ti.com> | 2020-11-23 13:49:31 +0300 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-12-10 12:35:33 +0300 |
commit | 448373d9db1a7000072f65103af19e20503f0c0c (patch) | |
tree | d9425607d95850f22d056d262ab41b537f60502e /drivers/usb/chipidea/usbmisc_imx.c | |
parent | 429ad75f2b13ac8a2c7af859f8f61b9188bca7ba (diff) | |
download | linux-448373d9db1a7000072f65103af19e20503f0c0c.tar.xz |
usb: cdns3: fix NULL pointer dereference on no platform data
Some platforms (e.g. TI) will not have any platform data which will
lead to NULL pointer dereference if we don't check for NULL pdata.
Fixes: 7cea9657756b ("usb: cdns3: add quirk for enable runtime pm by default")
Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/chipidea/usbmisc_imx.c')
0 files changed, 0 insertions, 0 deletions