ext2: fix possible integer truncation in ext2_iomap_begin
authorChristoph Hellwig <hch@lst.de>
Sun, 2 Oct 2016 22:46:04 +0000 (09:46 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 2 Oct 2016 22:46:04 +0000 (09:46 +1100)
commitd5bfccdf38d094f2b15fae8b361d7bd47f2509d6
tree37d47bc6f016d5312faa9ccbd56da082b9835a75
parent25f4e70291a309749a93b30ffa58d2eac9f200f8
ext2: fix possible integer truncation in ext2_iomap_begin

For 32-bit architectures we need to cast first_block to u64 before
shifting it left.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Jan Kara <jack@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/ext2/inode.c