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

Skip to content
Commit bf32b4ae authored by Bhuvan Varshney's avatar Bhuvan Varshney Committed by Gerrit - the friendly Code Review server
Browse files

NFC: Avoid gpio_free for invalid GPIO



ese_gpio was initialised with -EINVAL in case the gpio
is found invalid. While freeing up the resources in
case of probe failure, ese_gpio being an unsigned value
was being compared with numeric value, which will always
be true, hence leading to freeing up the gpio.

Checked if gpio is valid before freeing it up.

Change-Id: Ibfcc14984b2dc45c1dee51ba6a3d03109420be15
Signed-off-by: default avatarBhuvan Varshney <bvarshne@codeaurora.org>
parent 7ddc39c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment