From 4c97b619e5a8662b2c5ed791ab8e564aa85e75c5 Mon Sep 17 00:00:00 2001 From: delphij 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/smbfs') diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index b7f08fe..268e5f8 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.1