sdhci_pci: ignore invalid PCI bars.
Should fix #16778 Change-Id: I8c8ffa1a7ca5bc4613801563c42d5c5d2b3eb539 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3682 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
ce534c52be
commit
20719db962
@ -671,6 +671,10 @@ init_bus(device_node* node, void** bus_cookie)
|
||||
|| gDeviceManager->get_attr_uint8(node, BAR_INDEX, &bar, false) < B_OK)
|
||||
return -1;
|
||||
|
||||
// Ignore invalid bars
|
||||
if (pciInfo.u.h0.base_register_sizes[bar] == 0)
|
||||
return -1;
|
||||
|
||||
TRACE("Register SD bus at slot %d, using bar %d\n", slot + 1, bar);
|
||||
|
||||
pci_info pciInfo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user