PCI: rockchip: Fix find_first_zero_bit() limit
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Mar 2022 06:59:44 +0000 (09:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:21:13 +0000 (10:21 +0200)
commit92b7cab3076d0cfbf57c2d8270ff66e7d7c675fe
tree9248e1c551ec59ddcc24a2ebc4e544fec03474fc
parent266f5cf6928a79a16cb8bc37f7237ea401247d2b
PCI: rockchip: Fix find_first_zero_bit() limit

[ Upstream commit 096950e230b8d83645c7cf408b9f399f58c08b96 ]

The ep->ob_region_map bitmap is a long and it has BITS_PER_LONG bits.

Link: https://lore.kernel.org/r/20220315065944.GB13572@kili
Fixes: cf590b078391 ("PCI: rockchip: Add EP driver for Rockchip PCIe controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/pcie-rockchip-ep.c