summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/qcom_scm-32.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-11-15 07:58:35 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2017-11-15 08:20:11 +0100
commit1a5d5c592e902191bfa091ec9169aa43299a7d0f (patch)
tree3c93a23af068752e0441af9abd36de6bb5618128 /drivers/firmware/qcom_scm-32.c
parentremoteproc: qcom: Drop pr_err in q6v5_xfer_mem_ownership() (diff)
downloadlinux-1a5d5c592e902191bfa091ec9169aa43299a7d0f.tar.xz
linux-1a5d5c592e902191bfa091ec9169aa43299a7d0f.zip
remoteproc: qcom: Fix error handling paths in order to avoid memory leaks
In case of error returned by 'q6v5_xfer_mem_ownership', we must free some resources before returning. In 'q6v5_mpss_init_image()', add a new label to undo a previous 'dma_alloc_attrs()'. In 'q6v5_mpss_load()', re-use the already existing error handling code to undo a previous 'request_firmware()', as already done in the other error handling paths of the function. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/firmware/qcom_scm-32.c')
0 files changed, 0 insertions, 0 deletions