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:23:04 +0000 (10:23 +0200)
commitd41a739cc7c17809dcfc26483289e1e2fbac4b4f
tree0e670f138b59850a86f4dd28a0a7e100eab8bbce
parentd3c684749f8724228a8833858dd3a9dbe5a049fd
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