summaryrefslogtreecommitdiff
path: root/sys/dev/vnd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/vnd.c')
-rw-r--r--sys/dev/vnd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 3dc563ea87f..932130f206c 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.72 2007/03/25 21:52:27 tedu Exp $ */
+/* $OpenBSD: vnd.c,v 1.73 2007/04/29 18:59:37 krw Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -914,8 +914,7 @@ vndioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
vnd->sc_dk.dk_cpulabel);
if (error == 0) {
if (cmd == DIOCWDINFO)
- error = writedisklabel(MAKEDISKDEV(major(dev),
- DISKUNIT(dev), RAW_PART),
+ error = writedisklabel(DISKLABELDEV(dev),
vndstrategy, vnd->sc_dk.dk_label,
vnd->sc_dk.dk_cpulabel);
}