From: Bob Copeland Date: Thu, 28 May 2015 22:44:37 +0000 (-0700) Subject: omfs: fix potential integer overflow in allocator X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~40^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6b2b36a8249ec9dfb2a714acadad86d9cc0aee;p=pandora-kernel.git omfs: fix potential integer overflow in allocator Both 'i' and 'bits_per_entry' are signed integers but the result is a u64 block number. Cast i to u64 to avoid truncation on 32-bit targets. Found by Coverity (CID 200679). Signed-off-by: Bob Copeland Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed