Skip to content

Commit 5fb3fb8

Browse files
Lv Ruyi (CGEL ZTE)dtor
authored andcommitted
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>
1 parent f28af98 commit 5fb3fb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/keyboard/mt6779-keypad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static void mt6779_keypad_clk_disable(void *data)
9191
static int mt6779_keypad_pdrv_probe(struct platform_device *pdev)
9292
{
9393
struct mt6779_keypad *keypad;
94-
unsigned int irq;
94+
int irq;
9595
u32 debounce;
9696
bool wakeup;
9797
int error;

0 commit comments

Comments
 (0)