]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35236323120e55989ec285556de0aaa8bd1e318f
treebc0e1ef91e97a99c39f656bb14d774598f3b17cc
parentbf2ffc41876bdc5351bd825342654e57b168dd6b
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: f1600fbd0298 ("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