]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/bfs/inode.c
Merge tag 'xfs-4.13-merge-6' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[mirror_ubuntu-artful-kernel.git] / fs / bfs / inode.c
index 25e312cb60716caef70a66f12eb391f8aa234005..9a69392f1fb375c4c16b07332248edf7da57c9b6 100644 (file)
@@ -419,7 +419,7 @@ static int bfs_fill_super(struct super_block *s, void *data, int silent)
                if (i_sblock > info->si_blocks ||
                        i_eblock > info->si_blocks ||
                        i_sblock > i_eblock ||
-                       i_eoff > s_size ||
+                       (i_eoff != le32_to_cpu(-1) && i_eoff > s_size) ||
                        i_sblock * BFS_BSIZE > i_eoff) {
 
                        printf("Inode 0x%08x corrupted\n", i);