git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9eaa44
)
x86/PCI: Fix Broadcom CNB20LE unintended sign extension
author
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 25 Apr 2014 17:01:08 +0000
(11:01 -0600)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 25 Apr 2014 17:01:08 +0000
(11:01 -0600)
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>
arch/x86/pci/broadcom_bus.c
patch
|
blob
|
history
diff --cc
arch/x86/pci/broadcom_bus.c
Simple merge