Skip to content
Commit 434ac4d5 authored by Colin Ian King's avatar Colin Ian King Committed by Bjorn Andersson
Browse files

remoteproc/mediatek: fix null pointer dereference on null scp pointer



Currently when pointer scp is null a dev_err is being called that
references the pointer which is the very thing we are trying to
avoid doing. Remove the extraneous error message to avoid this
issue.

Addresses-Coverity: ("Dereference after null check")
Fixes: 63c13d61 ("remoteproc/mediatek: add SCP support for mt8183")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200918152428.27258-1-colin.king@canonical.com


Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent cb2d8d5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment