diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2005-11-09 19:05:49 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2005-11-09 19:05:49 +0000 |
commit | 18629dc9ff26c2c75bd348b0d34681ce8a203388 (patch) | |
tree | 110678ac13d10471f1217b4ed4234cf0835e7517 /sys/dev/ic/wdc.c | |
parent | dd911d3a6513d0234c5faa7fe84a1c8e4caafbda (diff) |
Don't fall back to fake geometry if ata_get_params() fails.
"looks sane" grange@; tested by niall@ krw@ jmc@ jolan@
Diffstat (limited to 'sys/dev/ic/wdc.c')
-rw-r--r-- | sys/dev/ic/wdc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 23a4146f453..62599e113bf 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.87 2005/10/21 08:50:50 grange Exp $ */ +/* $OpenBSD: wdc.c,v 1.88 2005/11/09 19:05:48 uwe Exp $ */ /* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */ @@ -851,6 +851,7 @@ wdcattach(chp) /* If IDENTIFY succeeded, this is not an OLD ctrl */ drvp->drive_flags &= ~DRIVE_OLD; } else { + bzero(&drvp->id, sizeof(struct ataparams)); drvp->drive_flags &= ~(DRIVE_ATA | DRIVE_ATAPI); WDCDEBUG_PRINT(("%s:%d:%d: IDENTIFY failed\n", |