diff options
| author | Shang XiaoJing <[email protected]> | 2022-11-25 10:12:22 +0800 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2023-01-12 23:43:35 +0530 |
| commit | 17eee264ef386ef30a69dd70e36f29893b85c170 (patch) | |
| tree | fcbe688d5ce747f3a0e398519b68fc46d056aee9 /scripts/gdb/linux/symbols.py | |
| parent | 7124c93887cc4e6c5b48920f83115e4a5892e870 (diff) | |
phy: usb: sunplus: Fix potential null-ptr-deref in sp_usb_phy_probe()
sp_usb_phy_probe() will call platform_get_resource_byname() that may fail
and return NULL. devm_ioremap() will use usbphy->moon4_res_mem->start as
input, which may causes null-ptr-deref. Check the ret value of
platform_get_resource_byname() to avoid the null-ptr-deref.
Fixes: 99d9ccd97385 ("phy: usb: Add USB2.0 phy driver for Sunplus SP7021")
Signed-off-by: Shang XiaoJing <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions