summaryrefslogtreecommitdiff
path: root/sys/dev/ramdisk.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-07-08 05:43:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-07-08 05:43:17 +0000
commitd362ef11ef107a95307dbb7299882034c963697e (patch)
tree359b6f8af6397f853f0d1e96133c63e46b908783 /sys/dev/ramdisk.c
parent493da4c062bb141d9beed656c8f8bde8bbd51cce (diff)
Add missing call to minor() in RDLABELDEV macro.
This only worked before by luck. Fixes floppy panic in -current. Thanks to krw@ for the DDB traceback, it helped ;-)
Diffstat (limited to 'sys/dev/ramdisk.c')
-rw-r--r--sys/dev/ramdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c
index 1ee08d90b47..5b281c0e2db 100644
--- a/sys/dev/ramdisk.c
+++ b/sys/dev/ramdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ramdisk.c,v 1.13 2001/06/27 04:45:57 art Exp $ */
+/* $OpenBSD: ramdisk.c,v 1.14 2001/07/08 05:43:16 millert Exp $ */
/* $NetBSD: ramdisk.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */
/*
@@ -88,7 +88,7 @@
#define RD_IS_CTRL(unit) (RD_PART(unit) == RAW_PART)
#define MAKERDDEV(maj, unit, part) MAKEDISKDEV(maj, unit, part)
-#define RDLABELDEV(dev) (MAKERDDEV(major(dev), RD_UNIT(dev), RAW_PART))
+#define RDLABELDEV(dev) (MAKERDDEV(major(dev), RD_UNIT(minor(dev)), RAW_PART))
/* autoconfig stuff... */