diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-11-15 17:14:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-11-15 17:14:15 +0000 |
commit | 3ca92a850980694cd6f38b25c4659644619fcb49 (patch) | |
tree | ac4e0b8c65db59f2f5f784d20bc5006a68c54ecc | |
parent | 9f5a2c08e8a856c12903d5cbb94683214f0ebcc8 (diff) |
on failure, the hibernate io function should return an errno type variable,
instead of 1.
-rw-r--r-- | sys/dev/ata/ata_wdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata_wdc.c b/sys/dev/ata/ata_wdc.c index 1276ca7f10c..584638636cc 100644 --- a/sys/dev/ata/ata_wdc.c +++ b/sys/dev/ata/ata_wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ata_wdc.c,v 1.43 2011/11/14 00:25:17 mlarkin Exp $ */ +/* $OpenBSD: ata_wdc.c,v 1.44 2011/11/15 17:14:14 deraadt Exp $ */ /* $NetBSD: ata_wdc.c,v 1.21 1999/08/09 09:43:11 bouyer Exp $ */ /* @@ -170,7 +170,7 @@ wd_hibernate_io(dev_t dev, daddr_t blkno, vaddr_t addr, size_t size, int op, voi xfer->c_intr = wdc_ata_bio_intr; xfer->c_kill_xfer = wdc_ata_bio_kill_xfer; wdc_exec_xfer(chp, xfer); - return (ata_bio->flags & ATA_ITSDONE) ? 0 : 1; + return (ata_bio->flags & ATA_ITSDONE) ? 0 : EIO; } #endif /* HIBERNATE */ |