diff options
author | Xin LI <delphij@FreeBSD.org> | 2005-04-10 03:17:42 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2005-04-10 03:17:42 +0000 |
commit | e8943128a9766c70dee439e6cfe330235a6226df (patch) | |
tree | bb77ec7c276ade49216664eb68855b26d8e53e9d /sys/fs | |
parent | f97c3df18decb837eca280b25eccedcb1c81ee16 (diff) | |
download | src-e8943128a9766c70dee439e6cfe330235a6226df.tar.gz src-e8943128a9766c70dee439e6cfe330235a6226df.zip |
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
Notes
Notes:
svn path=/head/; revision=144852
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |