diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-05-22 05:21:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-05-22 05:21:58 +0000 |
commit | 2ea10b8a6ab026f4622a8f60e52385f3611fe267 (patch) | |
tree | 83ae30cf57542b345ec4572519a8a35c8ee79f50 /sys/dev/ic/wdc.c | |
parent | 9a3341ca9bc1784d3259485274acbcdbc11d0ea6 (diff) |
In wdcprobe(), directly invoke wdc_do_reset() instead of using the reset
reset function pointer, as this can cause a NULL pointer dereference on
some systems.
Diffstat (limited to 'sys/dev/ic/wdc.c')
-rw-r--r-- | sys/dev/ic/wdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 81424599dc3..ec66ab173c1 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.92 2006/05/08 00:18:40 jsg Exp $ */ +/* $OpenBSD: wdc.c,v 1.93 2006/05/22 05:21:57 miod Exp $ */ /* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */ @@ -683,7 +683,7 @@ wdcprobe(chp) } /* reset the channel */ - chp->wdc->reset(chp); + wdc_do_reset(chp); ret_value = __wdcwait_reset(chp, ret_value); WDCDEBUG_PRINT(("%s:%d: after reset, ret_value=0x%d\n", |