From e8943128a9766c70dee439e6cfe330235a6226df Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sun, 10 Apr 2005 03:17:42 +0000 Subject: Initialize vp before using it. Failing to do this can cause instant panic when trying to access a file on mounted smbfs. Submitted by: takawata at jp freebsd org --- sys/fs/smbfs/smbfs_vnops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/fs') diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index b7f08fe62658..268e5f8d821c 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -1120,6 +1120,7 @@ smbfs_lookup(ap) struct vattr vattr; killit = 0; + vp = *vpp; error = VOP_GETATTR(vp, &vattr, cnp->cn_cred, td); /* * If the file type on the server is inconsistent -- cgit v1.2.3