mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
Input: mt6779-keypad - fix signedness bug
The irq variable is defined as unsigned int. If the platform_get_irq() returns a negative value, data type cast may result in error. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Lv Ruyi (CGEL ZTE) <lv.ruyi@zte.com.cn> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Link: https://lore.kernel.org/r/20220308025054.2077162-1-lv.ruyi@zte.com.cn Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
f28af984e7
commit
5fb3fb8aa2
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ static void mt6779_keypad_clk_disable(void *data)
|
||||||
static int mt6779_keypad_pdrv_probe(struct platform_device *pdev)
|
static int mt6779_keypad_pdrv_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct mt6779_keypad *keypad;
|
struct mt6779_keypad *keypad;
|
||||||
unsigned int irq;
|
int irq;
|
||||||
u32 debounce;
|
u32 debounce;
|
||||||
bool wakeup;
|
bool wakeup;
|
||||||
int error;
|
int error;
|
||||||
|
|
Loading…
Reference in a new issue