thinkpad_acpi: signedness bugs getting current_mode
This needs to be signed for the error handling to work. Valid modes are small positive integers. Fixes: b790ceeb ('thinkpad_acpi: Add adaptive_kbd_mode sysfs attr') Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Acked-By: NBastien Nocera <hadess@hadess.net> Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
Showing
想要评论请 注册 或 登录