diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-24 00:12:35 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-24 00:12:35 +0000 |
commit | 482368b1a8e45430672c58c9a42e7d2004367126 (patch) | |
tree | ce2a1a567d4d62dee7c2e71a46a99cf72cf1d606 /fs/fat | |
parent | e4d0251c6f56ab2e191afb70f80f382793e23f74 (diff) |
Merge with 2.3.47. Guys, this is buggy as shit. You've been warned.
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/cache.c b/fs/fat/cache.c index 175182959..038773b94 100644 --- a/fs/fat/cache.c +++ b/fs/fat/cache.c @@ -283,7 +283,7 @@ int default_fat_bmap(struct inode *inode,int sector) return 0; return sector+sb->dir_start; } - if (sector >= MSDOS_I(inode)->mmu_private>>9) + if (sector >= (MSDOS_I(inode)->mmu_private+511)>>9) return 0; cluster = sector/sb->cluster_size; offset = sector % sb->cluster_size; |