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

Commit dd50cc04 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

power: qpnp-fg: Fix NULL pointer dereference in battery profile init



During battery profile init 'of_batterydata_get_best_profile' can
return either an error code or NULL, handle both of these.

CRs-Fixed: 1029493
Change-Id: If98613b018e0bde6c60d374fd61487a6016c1db1
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent cc957303
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