diff --git a/fs/fat/nfs.c b/fs/fat/nfs.c index eb192656fba2787a682acefbc9c6d9bed5c1fa2c..f442a8d2f114b86d5ad6e73866f2c3e6ec14c739 100644 --- a/fs/fat/nfs.c +++ b/fs/fat/nfs.c @@ -139,6 +139,12 @@ fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, fid->parent_i_gen = parent->i_generation; type = FILEID_FAT_WITH_PARENT; *lenp = FAT_FID_SIZE_WITH_PARENT; + } else { + /* + * We need to initialize this field because the fh is actually + * 12 bytes long + */ + fid->parent_i_pos_hi = 0; } return type;