diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-11-15 07:58:35 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-11-15 08:20:11 +0100 |
commit | 1a5d5c592e902191bfa091ec9169aa43299a7d0f (patch) | |
tree | 3c93a23af068752e0441af9abd36de6bb5618128 /drivers/firmware/qcom_scm-32.c | |
parent | remoteproc: qcom: Drop pr_err in q6v5_xfer_mem_ownership() (diff) | |
download | linux-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