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

Skip to content
Commit eacc299b authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-bms: Fix memory leaks when probe fails



There exists a memory leak when the qpnp-bms driver's probe function
fails after loading the battery data. Fix this by freeing that memory
in the error handling of the probe function. Similarly, free the same
memory if the driver is removed dynamically.

Change-Id: I074605f8b698ab780c9f7e90feede261d082b05f
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent dc1ad87c
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