aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorShang XiaoJing <[email protected]>2022-11-25 10:16:41 +0800
committerBjorn Andersson <[email protected]>2022-12-06 22:10:12 -0600
commitf360e2b275efbb745ba0af8b47d9ef44221be586 (patch)
tree0b483d36c108afe826082a9ffffd4d38a41d0d6d /drivers/usb/cdns3/cdns3-debug.h
parente01ce676aaef3b13d02343d7e70f9637d93a3367 (diff)
remoteproc: qcom: q6v5: Fix potential null-ptr-deref in q6v5_wcss_init_mmio()
q6v5_wcss_init_mmio() will call platform_get_resource_byname() that may fail and return NULL. devm_ioremap() will use res->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: 0af65b9b915e ("remoteproc: qcom: wcss: Add non pas wcss Q6 support for QCS404") Signed-off-by: Shang XiaoJing <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions