X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fdrv%2Fpci.c;h=3a4ec865191cae3a85cfc93e787832e75e0c25b4;hb=2a17e7ae7dab0ac8ba8c434bc3b409f20d378e46;hp=e926f94f3fbcb342a9d353ed66644cf1301b0e1e;hpb=e7a76b0d8a0cc6aa77966509780973a6f8216ef7;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/drv/pci.c b/KernelLand/Kernel/drv/pci.c index e926f94f..3a4ec865 100644 --- a/KernelLand/Kernel/drv/pci.c +++ b/KernelLand/Kernel/drv/pci.c @@ -544,7 +544,11 @@ Uint64 PCI_GetValidBAR(tPCIDev ID, int BARNum, tPCI_BARType Type) break; } ASSERT(ret != -1); - ASSERT(ret); + if( ret == 0 ) { + Log_Error("PCI", "PCI%i BAR%i correct type, but unallocated (0x%x)", + ID, BARNum, bar_val); + return 0; + } return ret; }