diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index 9bd757774c9ed0d154b7f8ec55f93db18f08c9bc..88067f36e5e7bea4c4d51cff5dd0a9e24e79b3ad 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -564,7 +564,7 @@ static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry,
 static int afs_d_revalidate(struct dentry *dentry, struct nameidata *nd)
 {
 	struct afs_vnode *vnode, *dir;
-	struct afs_fid fid;
+	struct afs_fid uninitialized_var(fid);
 	struct dentry *parent;
 	struct key *key;
 	void *dir_version;