summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-05-24 20:28:06 +0000
committerphk <phk@FreeBSD.org>2001-05-24 20:28:06 +0000
commit991876e15bc4509c7b9f695b2f37589236d984f8 (patch)
treee19fcd73b441e7acbf472cc1b618b8396f28c91d
parent170ee567dda564271d63c7d5747c27f0b11018d1 (diff)
downloadFreeBSD-src-991876e15bc4509c7b9f695b2f37589236d984f8.zip
FreeBSD-src-991876e15bc4509c7b9f695b2f37589236d984f8.tar.gz
Don't rely on cdevsw_add() when we hack about with dev_t's.
-rw-r--r--sys/kern/subr_diskslice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c
index 8696941..9d9c705 100644
--- a/sys/kern/subr_diskslice.c
+++ b/sys/kern/subr_diskslice.c
@@ -730,6 +730,8 @@ dsopen(dev, mode, flags, sspp, lp)
)
continue;
dev1 = dkmodslice(dkmodpart(dev, RAW_PART), slice);
+ if (dev1->si_devsw == NULL)
+ dev1->si_devsw = dev->si_devsw;
sname = dsname(dev, unit, slice, RAW_PART, partname);
/*
* XXX this should probably only be done for the need_init
OpenPOWER on IntegriCloud