diff options
| author | Bartosz Golaszewski <[email protected]> | 2024-09-30 08:33:28 +0000 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2024-10-06 03:01:52 +0000 |
| commit | ca61d6836e6f4442a77762e1074d2706a2a6e578 (patch) | |
| tree | 759a9b3e9fbebfb3e512e193bc340f280b5a6a9b /drivers/usb/cdns3/cdns3-ti.c | |
| parent | firmware: qcom: scm: suppress download mode error (diff) | |
| download | kernel-ca61d6836e6f4442a77762e1074d2706a2a6e578.tar.gz kernel-ca61d6836e6f4442a77762e1074d2706a2a6e578.zip | |
firmware: qcom: scm: fix a NULL-pointer dereference
Some SCM calls can be invoked with __scm being NULL (the driver may not
have been and will not be probed as there's no SCM entry in device-tree).
Make sure we don't dereference a NULL pointer.
Fixes: 449d0d84bcd8 ("firmware: qcom: scm: smc: switch to using the SCM allocator")
Reported-by: Rudraksha Gupta <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Reviewed-by: Konrad Dybcio <[email protected]>
Tested-by: Rudraksha Gupta <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Reviewed-by: Stephan Gerhold <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Kuldeep Singh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
