Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit df0da1e4 authored by Raghavendra Rao Ananta's avatar Raghavendra Rao Ananta Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: pil: Avoid memory leaks by releasing the firmware resources



Currently, the driver calls request_firmware_into_buf() to load
the firmware image onto a pre-allocated memory. During the
process, some firmware resources are created. Usually, it
should be freed by a call to release_firmware() once the
firmware is loaded. However, the driver doesn't do this.
Hence, the memory is leaked each time a subsystem powerup
handling path is triggered (from a restart or a crash handling).
Therefore, release the firmware resources once the firmware is
loaded onto the memory.

Change-Id: I565afeda1157c9f7952336462ae0b022a2eca0bd
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
parent 22ea3159
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment