thinkpad_acpi: signedness bugs getting current_mode
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Mar 2015 09:34:50 +0000 (12:34 +0300)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 14 Mar 2015 18:59:15 +0000 (11:59 -0700)
commitabf9dc0d9ae813d425675656f1af16f58c60e443
tree459b76028bd72af4febcd999fc0c08e50cacecfd
parentb4dd04ac6ef88259ddb59ca809ca5845c7892139
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: b790ceeb0fd9 ('thinkpad_acpi: Add adaptive_kbd_mode sysfs attr')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-By: Bastien Nocera <hadess@hadess.net>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c