diff options
author | Guenter Roeck <linux@roeck-us.net> | 2021-04-06 07:29:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-28 14:16:49 +0300 |
commit | d7327d51ccd9fabac43a99a1147dc673850f46d3 (patch) | |
tree | b277d46f8a9a97f3857291d8f6ca8d95aef1f4e7 /net/mac80211 | |
parent | f10f361020531aa47d579e6416936b4e39fa39b9 (diff) | |
download | linux-d7327d51ccd9fabac43a99a1147dc673850f46d3.tar.xz |
pcnet32: Use pci_resource_len to validate PCI resource
[ Upstream commit 66c3f05ddc538ee796321210c906b6ae6fc0792a ]
pci_resource_start() is not a good indicator to determine if a PCI
resource exists or not, since the resource may start at address 0.
This is seen when trying to instantiate the driver in qemu for riscv32
or riscv64.
pci 0000:00:01.0: reg 0x10: [io 0x0000-0x001f]
pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000001f]
...
pcnet32: card has no PCI IO resources, aborting
Use pci_resouce_len() instead.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/mac80211')
0 files changed, 0 insertions, 0 deletions