From: Bjorn Helgaas Date: Fri, 25 Apr 2014 17:01:08 +0000 (-0600) Subject: x86/PCI: Fix Broadcom CNB20LE unintended sign extension X-Git-Tag: omap-for-v3.16/fixes-against-rc1~38^2~8^6~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b2d70764bb39242dcc49c0ebd10fcb8258ce5fa;p=pandora-kernel.git x86/PCI: Fix Broadcom CNB20LE unintended sign extension In the expression "word1 << 16", word1 starts as u16, but is promoted to a signed int, then sign-extended to resource_size_t, which is probably not what was intended. Cast to resource_size_t to avoid the sign extension. Found by Coverity (CID 138749, 138750). Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed