diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-11-27 15:15:48 +0100 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-12-18 21:14:58 -0600 |
commit | 6c57d7b593c4a4e60db65d5ce0fe1d9f79ccbe9b (patch) | |
tree | db5e2f7a6feb75b993f011670de735e5556b87b7 /drivers/soc/qcom | |
parent | ff5fed86be58a8351938bb4c828f77329cde4cbd (diff) |
firmware: qcom: qseecom: fix memory leaks in error paths
Fix instances of returning error codes directly instead of jumping to
the relevant labels where memory allocated for the SCM calls would be
freed.
Fixes: 759e7a2b62eb ("firmware: Add support for Qualcomm UEFI Secure Application")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202311270828.k4HGcjiL-lkp@intel.com/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Tested-by: Deepti Jaggi <quic_djaggi@quicinc.com> #sa8775p-ride
Link: https://lore.kernel.org/r/20231127141600.20929-2-brgl@bgdev.pl
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/soc/qcom')
0 files changed, 0 insertions, 0 deletions