diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-03-27 20:27:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-03-27 20:27:39 +0000 |
commit | acd9340a23320013830f92fa7d6e98a3ad187394 (patch) | |
tree | c1c6308d89add14e8260f3884c7e3b5918f29e71 /sys/dev | |
parent | 859e475dc84a3cc75e60a4a3a7e5f21fd683bd93 (diff) |
Now that hibernate_alloc() only has clean success/failure, don't
need to call hibernate_free() to clean up a partial mess.
ok mlarkin kettenis
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 1a26b08f893..d616ce33741 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.325 2017/03/13 01:50:49 deraadt Exp $ */ +/* $OpenBSD: acpi.c,v 1.326 2017/03/27 20:27:38 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -2489,9 +2489,9 @@ fail_quiesce: config_suspend_all(DVACT_WAKEUP); #ifdef HIBERNATE -fail_alloc: if (sleepmode == ACPI_SLEEP_HIBERNATE) { hibernate_free(); +fail_alloc: hibernate_resume_bufcache(); } #endif /* HIBERNATE */ |