From: Pavel Machek Date: Mon, 17 Oct 2005 23:43:31 +0000 (-0700) Subject: [PATCH] Fix /proc/acpi/events around suspend X-Git-Tag: firefly_0821_release~39876^2~50^2~31 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5cc9eeef9a9567acdfc2f6943f24381bf460f008;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c index bfa8b76de403..2dbb1b0f11d5 100644 --- a/drivers/acpi/event.c +++ b/drivers/acpi/event.c @@ -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.