Skip to contentSkip to conversation

Fix /proc/acpi/events around suspend

PATCH Pavel Machek 1 participant 1 message Oct 17, 2005 ACPI

lore
Share & tools
lore
#0 lore raw

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

---
commit a6660667ecd52e68a1b51ab9135d722d974ba171 tree e915e150ec69ec6b1cf15a8d9302bf06665ad1f6 parent cce1c483de7404e3d6320d650af23373be4c39af author <pavel@amd.(none)> Tue, 11 Oct 2005 23:10:55 +0200 committer <pavel@amd.(none)> Tue, 11 Oct 2005 23:10:55 +0200

 drivers/acpi/event.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/acpi/event.c +2 -3
@@ -58,9 +58,8 @@ acpi_system_read_event(struct file *file
 			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.
Signature · 7 lines
Thanks, Sharp!


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl