diff options
author | Luca Weiss <[email protected]> | 2021-01-30 15:23:49 +0100 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2021-02-02 15:39:13 -0600 |
commit | 01f937ffc4686837d6c43dea80c6ade6cbd2940a (patch) | |
tree | c061c89ffb783579811cff10deef9b5e9c2955d0 /net/unix/unix_bpf.c | |
parent | aec8535edccb943adc067d184af1a3370f5b9568 (diff) |
soc: qcom: ocmem: don't return NULL in of_get_ocmem
If ocmem probe fails for whatever reason, of_get_ocmem returned NULL.
Without this, users must check for both NULL and IS_ERR on the returned
pointer - which didn't happen in drivers/gpu/drm/msm/adreno/adreno_gpu.c
leading to a NULL pointer dereference.
Reviewed-by: Brian Masney <[email protected]>
Fixes: 88c1e9404f1d ("soc: qcom: add OCMEM driver")
Signed-off-by: Luca Weiss <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions