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

Skip to content
Commit bc2dcbfa authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

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: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 9b82a4c5
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