Merge branch 'remotes/lorenzo/pci/rockchip'

- Fix bitmap size when searching for free outbound region (Dan Carpenter)

* remotes/lorenzo/pci/rockchip:
  PCI: rockchip: Fix find_first_zero_bit() limit
This commit is contained in:
Bjorn Helgaas 2022-05-24 16:42:27 -05:00
Родитель ba3527d8ff 096950e230
Коммит 647b52ecab
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -264,8 +264,7 @@ static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn,
struct rockchip_pcie *pcie = &ep->rockchip; struct rockchip_pcie *pcie = &ep->rockchip;
u32 r; u32 r;
r = find_first_zero_bit(&ep->ob_region_map, r = find_first_zero_bit(&ep->ob_region_map, BITS_PER_LONG);
sizeof(ep->ob_region_map) * BITS_PER_LONG);
/* /*
* Region 0 is reserved for configuration space and shouldn't * Region 0 is reserved for configuration space and shouldn't
* be used elsewhere per TRM, so leave it out. * be used elsewhere per TRM, so leave it out.