dect
/
linux-2.6
Archived
13
0
Fork 0

hfsplus: fix overflow in sector calculations in hfsplus_submit_bio

The variable io_size was unsigned int, which caused the wrong sector number
to be calculated after aligning it. This then caused mount to fail with big
volumes, as backup volume header information was searched from a
wrong sector.

Signed-off-by: Janne Kalliomäki <janne@tuxera.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Janne Kalliomäki 2012-06-17 17:05:24 -04:00 committed by Linus Torvalds
parent 485802a6c5
commit a6dc8c0421
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ int hfsplus_submit_bio(struct super_block *sb, sector_t sector,
DECLARE_COMPLETION_ONSTACK(wait);
struct bio *bio;
int ret = 0;
unsigned int io_size;
u64 io_size;
loff_t start;
int offset;