mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue