Skip to content

Commit 5cc9eee

Browse files
pavelmachekLinus Torvalds
authored andcommitted
[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>
1 parent 9ac0b9c commit 5cc9eee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/acpi/event.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ acpi_system_read_event(struct file *file, char __user * buffer, size_t count,
5858
return_VALUE(-EAGAIN);
5959

6060
result = acpi_bus_receive_event(&event);
61-
if (result) {
62-
return_VALUE(-EIO);
63-
}
61+
if (result)
62+
return_VALUE(result);
6463

6564
chars_remaining = sprintf(str, "%s %s %08x %08x\n",
6665
event.device_class ? event.

0 commit comments

Comments
 (0)