Explorar o código

[PATCH] Fix /proc/acpi/events around suspend

Fix -EIO on /proc/acpi/events after suspends.  This actually breaks
suspending by power button in many setups.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Pavel Machek %!s(int64=19) %!d(string=hai) anos
pai
achega
5cc9eeef9a
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      drivers/acpi/event.c

+ 2 - 3
drivers/acpi/event.c

@@ -58,9 +58,8 @@ acpi_system_read_event(struct file *file, char __user * buffer, size_t count,
 			return_VALUE(-EAGAIN);
 			return_VALUE(-EAGAIN);
 
 
 		result = acpi_bus_receive_event(&event);
 		result = acpi_bus_receive_event(&event);
-		if (result) {
-			return_VALUE(-EIO);
-		}
+		if (result)
+			return_VALUE(result);
 
 
 		chars_remaining = sprintf(str, "%s %s %08x %08x\n",
 		chars_remaining = sprintf(str, "%s %s %08x %08x\n",
 					  event.device_class ? event.
 					  event.device_class ? event.