Skip to content
Commit 006df302 authored by Anti Sullin's avatar Anti Sullin Committed by Dmitry Torokhov
Browse files

Input: gpio_keys - verify that supplied GPIO numbers are valid



As David Brownell pointed out, gpio_keys driver does not check
return code of gpio_to_irq().

This patch adds the gpio_to_irq return code check to gpio_keys
and moves the IRQ edge type setting to request_irq flags to avoid
changing the irq type before we have confirmed we can use it.

Signed-off-by: default avatarAnti Sullin <anti.sullin@artecdesign.ee>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 2a8281d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment