diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-11-15 17:13:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-11-15 17:13:54 +0000 |
commit | 9f5a2c08e8a856c12903d5cbb94683214f0ebcc8 (patch) | |
tree | c1708a379e12665c156af805e66db1a9c8e54313 /sys/kern | |
parent | 87196db39b97f49b5477e857588f7cf8c608772d (diff) |
on failure, hibernate io functions return an errno. not 1.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_hibernate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c index c30eb2422bd..fe26bbab54e 100644 --- a/sys/kern/subr_hibernate.c +++ b/sys/kern/subr_hibernate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_hibernate.c,v 1.22 2011/11/14 00:25:17 mlarkin Exp $ */ +/* $OpenBSD: subr_hibernate.c,v 1.23 2011/11/15 17:13:53 deraadt Exp $ */ /* * Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl> @@ -668,11 +668,11 @@ get_hibernate_info(union hibernate_info *hiber_info, int suspend) /* - * operation -1 (HIB_INIT) requests initialization of the hibernate - * IO function + * Initialize of the hibernate IO function (for drivers which + * need that) */ if (hiber_info->io_func(hiber_info->device, 0, - (vaddr_t)NULL, 0, HIB_INIT, hiber_info->io_page) == -1) + (vaddr_t)NULL, 0, HIB_INIT, hiber_info->io_page)) goto fail; if (get_hibernate_info_md(hiber_info)) |