Home
last modified time | relevance | path

Searched hist:"0 b2d70764bb39242dcc49c0ebd10fcb8258ce5fa" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/x86/pci/
H A Dbroadcom_bus.cdiff 0b2d70764bb39242dcc49c0ebd10fcb8258ce5fa Fri Apr 25 19:01:08 CEST 2014 Bjorn Helgaas <bhelgaas@google.com> 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>