mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 03:51:48 +00:00
thinkpad-acpi: fix sign of ERESTARTSYS return
The returned error should be negative Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: <stable@kernel.org> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
8b1edc57a6
commit
80a8d1228e
@ -6313,7 +6313,7 @@ static int brightness_write(char *buf)
|
||||
* Doing it this way makes the syscall restartable in case of EINTR
|
||||
*/
|
||||
rc = brightness_set(level);
|
||||
return (rc == -EINTR)? ERESTARTSYS : rc;
|
||||
return (rc == -EINTR)? -ERESTARTSYS : rc;
|
||||
}
|
||||
|
||||
static struct ibm_struct brightness_driver_data = {
|
||||
|
Loading…
Reference in New Issue
Block a user