summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorHarry Yang <harryy@codeaurora.org>2017-04-06 00:02:30 -0700
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>2017-05-01 19:36:44 -0700
commit3ecadbc42fc0ba66e75a218e353a863ad881b97c (patch)
tree86f101e5a30d62e06510064435660ab4e0426add /lib/mpi/mpi-inline.h
parent0f0e36134d8a1082f099d543a122cd10d777beda (diff)
qcom: battery: Fix using stale votable pointers
The code flow between battery.c and smblib.c could end up with stale references in smblib. This is when if pl_init fails for some reason after creating the votables, while smblib obtains references to them, those references become invalid. Fix this by calling pl_init early in smb2 driver's probe such that if it fails smb2 driver exits early. Also change the name of pl_(de)init() functions to more appropriate name - qcom_batt_(de)init(). Change-Id: I58f79d26e6cc8524e792a23185ff6fc8cfdffa75 Signed-off-by: Harry Yang <harryy@codeaurora.org> Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions