Skip to content

Commit

Permalink
[PATCH] Fix /proc/acpi/events around suspend
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Oct 18, 2005
1 parent 9ac0b9c commit 5cc9eee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/acpi/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ acpi_system_read_event(struct file *file, char __user * buffer, size_t count,
return_VALUE(-EAGAIN);

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",
event.device_class ? event.
Expand Down

0 comments on commit 5cc9eee

Please sign in to comment.