diff options
author | 2011-11-15 17:13:53 +0000 | |
---|---|---|
committer | 2011-11-15 17:13:53 +0000 | |
commit | d0d915e25c4dd9993439cdb8a436cd1f6d104047 (patch) | |
tree | 71bbfa25f7f70fc4591fde090fdfecb7e0010b94 /sys/kern/subr_hibernate.c | |
parent | label_t is the kernel setjmp buffer. It should simply be an array of (diff) | |
download | wireguard-openbsd-d0d915e25c4dd9993439cdb8a436cd1f6d104047.tar.xz wireguard-openbsd-d0d915e25c4dd9993439cdb8a436cd1f6d104047.zip |
on failure, hibernate io functions return an errno. not 1.
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-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)) |