PR/14776: Emmanuel Dreyfus: cross device hard link causes panic.

Call VOP_ABORTOP on the right vnode damnit!
This commit is contained in:
christos 2001-11-29 22:32:53 +00:00
parent 2494c460a5
commit 9caaf10ee6
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_vnops.c,v 1.143 2001/11/10 10:59:10 lukem Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.144 2001/11/29 22:32:53 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.143 2001/11/10 10:59:10 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.144 2001/11/29 22:32:53 christos Exp $");
#include "opt_nfs.h"
#include "opt_uvmhist.h"
@ -1795,7 +1795,7 @@ nfs_link(v)
int v3;
if (dvp->v_mount != vp->v_mount) {
VOP_ABORTOP(vp, cnp);
VOP_ABORTOP(dvp, cnp);
vput(dvp);
return (EXDEV);
}