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:
Xiaozhe Shi <xiaozhes@codeaurora.org>
Loading
Please register or sign in to comment