aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1997-02-10 02:22:35 +0000
committerJohn Dyson <dyson@FreeBSD.org>1997-02-10 02:22:35 +0000
commit996c772f581f5624846dcd8470ca6860c1678b7c (patch)
tree88a944de263165091f0a18abeedbaaccec532407 /sys/dev
parentd243e2f7f456304830e7f832629bc24c504c2385 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdc/fdc.c2
-rw-r--r--sys/dev/vn/vn.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 9c095c9e7533..c2d495db4bc7 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -277,7 +277,7 @@ static d_strategy_t fdstrategy;
static struct cdevsw fd_cdevsw;
static struct bdevsw fd_bdevsw =
{ Fdopen, fdclose, fdstrategy, fdioctl, /*2*/
- nodump, nopsize, 0, "fd", &fd_cdevsw, -1 };
+ nodump, nopsize, D_DISK, "fd", &fd_cdevsw, -1 };
static struct isa_device *fdcdevs[NFDC];
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index cbff83c47a26..f03b7c14ea1c 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -457,11 +457,11 @@ vnioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
return(error);
error = VOP_GETATTR(nd.ni_vp, &vattr, p->p_ucred, p);
if (error) {
- VOP_UNLOCK(nd.ni_vp);
+ VOP_UNLOCK(nd.ni_vp, 0, p);
(void) vn_close(nd.ni_vp, FREAD|FWRITE, p->p_ucred, p);
return(error);
}
- VOP_UNLOCK(nd.ni_vp);
+ VOP_UNLOCK(nd.ni_vp, 0, p);
vn->sc_vp = nd.ni_vp;
vn->sc_size = btodb(vattr.va_size); /* note truncation */
error = vnsetcred(vn, p->p_ucred);