tmpfs,ceph,gfs2,isofs,reiserfs,xfs: fix fh_len checking
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / isofs / export.c
index 1d38044..2b4f235 100644 (file)
@@ -175,7 +175,7 @@ static struct dentry *isofs_fh_to_parent(struct super_block *sb,
 {
        struct isofs_fid *ifid = (struct isofs_fid *)fid;
 
-       if (fh_type != 2)
+       if (fh_len < 2 || fh_type != 2)
                return NULL;
 
        return isofs_export_iget(sb,