preparations failed.
ok kettenis@, thib@, deraadt@
-/* $OpenBSD: acpi.c,v 1.180 2010/07/19 16:58:12 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.181 2010/07/20 04:04:00 matthew Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
acpi_susp_resume_gpewalk(sc, state, 1);
fail:
- bufq_restart();
+ if (error) {
+ bufq_restart();
#if NWSDISPLAY > 0
- if (error)
wsdisplay_resume();
#endif /* NWSDISPLAY > 0 */
+ }
+
return (error);
}