]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Jun 2012 21:39:45 +0000 (14:39 -0700)
commit1fde9be4aa56799eae5a74e8d5ec980513214383
treea7ab24f567b527ddd2396d713379545d04d332fa
parentbdf4fdb7039ded51d12494acc2f7784e940b8b0d
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>
fs/hfsplus/wrapper.c