Bjorn Helgaas 0b2d70764b 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>
2014-04-25 11:01:08 -06:00
..
2014-02-18 17:02:04 -07:00
2011-10-14 09:05:28 -07:00
2014-02-18 17:02:04 -07:00
2014-02-27 08:07:39 -08:00
2011-10-14 09:05:28 -07:00
2014-03-18 14:40:09 +00:00