hfsplus: fix overflow in sector calculations in hfsplus_submit_bio
authorJanne Kalliomäki <janne@tuxera.com>
Sun, 17 Jun 2012 21:05:24 +0000 (17:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jun 2012 18:34:14 +0000 (11:34 -0700)
commit1466988e8be36b25f01123798ce430176911c3c5
tree867ee92cda90de61e0effb748a2baf3d2936f67a
parent41a38d50056968f3032b9e683765b37b4ed5f973
hfsplus: fix overflow in sector calculations in hfsplus_submit_bio

commit a6dc8c04218eb752ff79cdc24a995cf51866caed upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/hfsplus/wrapper.c