summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_diskslice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-05-07 09:10:10 +0000
committerphk <phk@FreeBSD.org>1999-05-07 09:10:10 +0000
commitcfcd3ae08c30d66088e1ad5ffa68aa05b60e1bfe (patch)
treec2070b78b335379282c4b6663b6f1a551d2502d5 /sys/kern/subr_diskslice.c
parent4f6fff14ba6d6cad50985169b0c92605f8e7fa77 (diff)
downloadFreeBSD-src-cfcd3ae08c30d66088e1ad5ffa68aa05b60e1bfe.zip
FreeBSD-src-cfcd3ae08c30d66088e1ad5ffa68aa05b60e1bfe.tar.gz
Fix a goof in the #ifdef DEVFS case which was found by inspection,
it may have made things very difficult for people if they tried to used DEVFS.
Diffstat (limited to 'sys/kern/subr_diskslice.c')
-rw-r--r--sys/kern/subr_diskslice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c
index fa0e4a4..d03cf34 100644
--- a/sys/kern/subr_diskslice.c
+++ b/sys/kern/subr_diskslice.c
@@ -43,7 +43,7 @@
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
- * $Id: subr_diskslice.c,v 1.60 1998/12/04 22:54:51 archie Exp $
+ * $Id: subr_diskslice.c,v 1.61 1998/12/10 19:57:00 eivind Exp $
*/
#include "opt_devfs.h"
@@ -811,7 +811,7 @@ dsopen(dname, dev, mode, flags, sspp, lp, strat, setgeom, cdevsw)
&& sp->ds_size != 0) {
mynor = minor(dev1);
sp->ds_bdev =
- devfs_add_devswf(bdevsw, mynor, DV_BLK,
+ devfs_add_devswf(cdevsw, mynor, DV_BLK,
UID_ROOT, GID_OPERATOR, 0640,
"%s", sname);
sp->ds_cdev =
OpenPOWER on IntegriCloud