diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-04-27 22:20:02 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-04-27 22:20:02 +0000 |
commit | 2003a7dedc7d0d8ad0d735b5ed8a37beea46752a (patch) | |
tree | 7e01385bded98173897c1905c11f1dad034ddff9 /sys/dev/isa | |
parent | 548497f91bdfef9ed0252a76deda907bda232a77 (diff) |
Even floppies should use DISKLABELDEV() on the dev_t parameter to
readdisklabel/writedisklabel.
ok deraadt@ weingart@ conceptual ok drahn@
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/fd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index 00be031c20e..20fe855ef50 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.60 2007/02/15 00:53:26 krw Exp $ */ +/* $OpenBSD: fd.c,v 1.61 2007/04/27 22:20:01 krw Exp $ */ /* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */ /*- @@ -995,7 +995,8 @@ fdioctl(dev, cmd, addr, flag, p) lp->d_magic2 = DISKMAGIC; lp->d_checksum = dkcksum(lp); - errstring = readdisklabel(dev, fdstrategy, lp, &cdl, 0); + errstring = readdisklabel(DISKLABELDEV(dev), fdstrategy, lp, + &cdl, 0); if (errstring) { /*printf("%s: %s\n", fd->sc_dev.dv_xname, errstring);*/ } @@ -1017,7 +1018,7 @@ fdioctl(dev, cmd, addr, flag, p) if (error) return error; - error = writedisklabel(dev, fdstrategy, lp, NULL); + error = writedisklabel(DISKLABELDEV(dev), fdstrategy, lp, NULL); return error; case FD_FORM: |