summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs/ext2fs_vnops.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-07-26 20:24:48 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-07-26 20:24:48 +0000
commitfd15098c509fbfc3714ad60c73759c36edae6850 (patch)
treec75a0d925f9bd4786574b997565a8b7c115d60cd /sys/ufs/ext2fs/ext2fs_vnops.c
parentc0e67202ad542df115ad7129df5da4508c00a92c (diff)
Back out changes to symlink and mknod that were not well tested.
A simple mknod at causes a kernel panic (uvm_fault).
Diffstat (limited to 'sys/ufs/ext2fs/ext2fs_vnops.c')
-rw-r--r--sys/ufs/ext2fs/ext2fs_vnops.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vnops.c b/sys/ufs/ext2fs/ext2fs_vnops.c
index 0414ab59077..b34882e4ead 100644
--- a/sys/ufs/ext2fs/ext2fs_vnops.c
+++ b/sys/ufs/ext2fs/ext2fs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vnops.c,v 1.15 2001/07/26 02:10:41 assar Exp $ */
+/* $OpenBSD: ext2fs_vnops.c,v 1.16 2001/07/26 20:24:47 millert Exp $ */
/* $NetBSD: ext2fs_vnops.c,v 1.1 1997/06/11 09:34:09 bouyer Exp $ */
/*
@@ -134,8 +134,6 @@ ext2fs_mknod(v)
register struct vattr *vap = ap->a_vap;
register struct vnode **vpp = ap->a_vpp;
register struct inode *ip;
- struct mount *mp;
- ino_t ino;
int error;
if ((error =
@@ -160,11 +158,6 @@ ext2fs_mknod(v)
(*vpp)->v_type = VNON;
vgone(*vpp);
*vpp = 0;
- error = VFS_VGET(mp, ino, vpp);
- if (error != 0) {
- *vpp = NULL;
- return (error);
- }
return (0);
}
@@ -1199,8 +1192,7 @@ ext2fs_symlink(v)
error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, NULL,
(struct proc *)0);
- if (error)
- vput(vp);
+ vput(vp);
return (error);
}