]> git.baikalelectronics.ru Git - kernel.git/commit
hfsplus: fix overflow in hfsplus_get_block
authorChristoph Hellwig <hch@tuxera.com>
Wed, 16 Feb 2011 08:34:17 +0000 (09:34 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 30 Jun 2011 11:40:58 +0000 (13:40 +0200)
commit386d48c88dd83a10913ebe8ff15c662d0994467d
tree32a751e5c58854fbb5aff9797fe73f6122e0b3ed
parent6483f13b3a34152579bc8d98dfee2e29d67dfa33
hfsplus: fix overflow in hfsplus_get_block

For filesystems larger than 2TB the final sector number passed to
map_bh might overflow the range representable in a 32-bit data type.
Make sure we use a sector_t for it and the arithmetics calculating it.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/extents.c