]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/isofs/export.c
tmpfs,ceph,gfs2,isofs,reiserfs,xfs: fix fh_len checking
[karo-tx-linux.git] / fs / isofs / export.c
index 1d3804492aa77d7ca4440d087fd415febc2e3681..2b4f2358eadbb063fab1fb2c275e9cad1151bd6c 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,