remoteproc: qcom_q6v5_mss: fix a bug in q6v5_probe()
authorAlex Elder <elder@linaro.org>
Fri, 3 Apr 2020 17:50:04 +0000 (12:50 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 16 Apr 2020 22:53:15 +0000 (15:53 -0700)
commit13c060b50a341dd60303e5264d12108b5747f200
treeb0f84cd03c5baceaae0a92c7f4fdef63557439ed
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
remoteproc: qcom_q6v5_mss: fix a bug in q6v5_probe()

If looking up the DT "firmware-name" property fails in q6v6_probe(),
the function returns without freeing the remoteproc structure
that has been allocated.  Fix this by jumping to the free_rproc
label, which takes care of this.

Signed-off-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20200403175005.17130-3-elder@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_mss.c