]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 19 Aug 2012 17:15:27 +0000 (18:15 +0100)
commit0a417591d73ccd0ad89f70300fdb4bd32a566f65
tree2c73f5fe74fa98f3b0ff0e46360c3d7bf4616311
parent4fc6a970e371907943871c1b51ef5a064d0bd02d
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: Ben Hutchings <ben@decadent.org.uk>
fs/hfsplus/wrapper.c