diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-11-15 09:58:35 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-11-15 10:20:11 +0300 |
commit | 1a5d5c592e902191bfa091ec9169aa43299a7d0f (patch) | |
tree | 3c93a23af068752e0441af9abd36de6bb5618128 /drivers/pcmcia/pxa2xx_palmtc.c | |
parent | 9f2a4342a8bf24c644204311f0cf154f78489b53 (diff) | |
download | linux-1a5d5c592e902191bfa091ec9169aa43299a7d0f.tar.xz |
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/pcmcia/pxa2xx_palmtc.c')
0 files changed, 0 insertions, 0 deletions