kernel/arch/powerpc/platforms/powernv/pci-ioda.c
.. .. @@ -2260,7 +2260,8 @@ 2260 2260 int index; 2261 2261 int64_t rc; 2262 2262 2263 - if (!res || !res->flags || res->start > res->end)2263 + if (!res || !res->flags || res->start > res->end ||2264 + res->flags & IORESOURCE_UNSET)2264 2265 return; 2265 2266 2266 2267 if (res->flags & IORESOURCE_IO) {