PCI: mobiveil: Avoid integer overflow in IB_WIN_SIZE
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 27 Jul 2018 22:10:39 +0000 (17:10 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 27 Jul 2018 22:10:39 +0000 (17:10 -0500)
commita54e43f993f8ec2f063b616a0e4d2b09e08d78a5
treebc0e1ef91e97a99c39f656bb14d774598f3b17cc
parentbd91b56cb3b27492963caeb5fccefe20a986ca8d
PCI: mobiveil: Avoid 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>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pcie-mobiveil.c