summaryrefslogtreecommitdiff
path: root/arch/x86/pci/i386.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2014-04-25 21:01:08 +0400
committerBjorn Helgaas <bhelgaas@google.com>2014-04-25 21:01:08 +0400
commit0b2d70764bb39242dcc49c0ebd10fcb8258ce5fa (patch)
treebf37d69370a9789abf725e022e2c5c39b40c4a3b /arch/x86/pci/i386.c
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff)
downloadlinux-0b2d70764bb39242dcc49c0ebd10fcb8258ce5fa.tar.xz
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 <bhelgaas@google.com>
Diffstat (limited to 'arch/x86/pci/i386.c')
0 files changed, 0 insertions, 0 deletions