diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-08-12 06:59:47 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-08-12 06:59:47 +0000 |
commit | a83486fe3ff711d8b3727f8abae7995141bb7562 (patch) | |
tree | 06ab439868094e0efb9796ca795f08fe005f5cd0 | |
parent | 72aa80f92c0b69a21250d9ae6ab8d7c3c0dd700e (diff) |
initialize part earlier in case of debugging.
-rw-r--r-- | sys/scsi/sd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index e27acc3196e..fa288e71d5c 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.53 2002/06/09 00:05:57 art Exp $ */ +/* $OpenBSD: sd.c,v 1.54 2002/08/12 06:59:46 fgsch Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -360,6 +360,7 @@ sdopen(dev, flag, fmt, p) return ENXIO; sc_link = sd->sc_link; + part = SDPART(dev); SC_DEBUG(sc_link, SDEV_DB1, ("sdopen: dev=0x%x (unit %d (of %d), partition %d)\n", dev, unit, @@ -423,8 +424,6 @@ sdopen(dev, flag, fmt, p) } } - part = SDPART(dev); - /* Check that the partition exists. */ if (part != RAW_PART && (part >= sd->sc_dk.dk_label->d_npartitions || |