remoteproc: fix null pointer dereference on glink only platforms
authorSibi Sankar <sibis@codeaurora.org>
Tue, 3 Apr 2018 18:15:15 +0000 (23:45 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 6 Apr 2018 05:53:16 +0000 (22:53 -0700)
commit730b2ad8f72898029160a6832141ba954122a0c8
tree783d539515ec1c2b682fb18266d72b9fd4b14bed
parentdea4bd1975e36e3127a95e74c3670ea8d7f4796f
remoteproc: fix null pointer dereference on glink only platforms

Currently calling list_del on smd subdev remove path results in
null pointer dereference on glink only platforms. Fix this by
adding safety checks in glink/smd subdev remove paths.

Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_common.c