PCI: mobiveil: Integer overflow in IB_WIN_SIZE
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Jul 2018 09:45:39 +0000 (12:45 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 26 Jul 2018 10:46:46 +0000 (11:46 +0100)
commit014562071c96524b518d4d3513fcde072c8e63b5
tree83b00d2596c6bba80b7c90fec06de4c4de1e916d
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
PCI: mobiveil: Integer overflow in IB_WIN_SIZE

IB_WIN_SIZE is larger than INT_MAX so we need to cast it to u64.

Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pcie-mobiveil.c