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

Commit cbbd8fd2 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-fg: cancel all the work when fg probe fails



Currently, not all the possible scheduled workqueues are canceled when
the fuel gauge driver fails to probe. This can cause a crash when the
fuel gauge chip data is freed. The same can happen upon driver removal.

Fix this by canceling all the possible scheduled workqueues upon driver
probe failure and removal.

CRs-Fixed: 758060
Change-Id: Ie9aaddd6891238c668d3e069046bdd0107680fce
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent f3a4cecd
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