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

Skip to content
Commit 0bf56a42 authored by Bhuvan Varshney's avatar Bhuvan Varshney
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 642059a3
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