Skip to content
Commit 5fb3fb8a authored by Lv Ruyi (CGEL ZTE)'s avatar Lv Ruyi (CGEL ZTE) Committed by Dmitry Torokhov
Browse files

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarLv Ruyi (CGEL ZTE) <lv.ruyi@zte.com.cn>
Reviewed-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20220308025054.2077162-1-lv.ruyi@zte.com.cn


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent f28af984
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