summaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2016-09-13 10:36:48 -0700
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>2016-10-20 17:26:45 -0700
commitbc2dcbfae6262d98c7d8fe9a0401a783816f8deb (patch)
tree2ec83c97fbf5cbfebd612dc80384882c389c9acf /lib/test-string_helpers.c
parent9b82a4c5896632b62140d1ddda55638fea254007 (diff)
smb1351-charger: Fix possible Null pointer dereference
The adc notification callback assumes that it will end up selecting the correct state. However, if the parameters are outside the expected values, the code could end up dereferencing a null pointer. Fix this by returning before that pointer is dereferenced. Change-Id: I42642b475a1032c3a7395336381f3bd6c1396dde Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions