forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/powerpc/platforms/powernv/pci-ioda.c
....@@ -2260,7 +2260,8 @@
22602260 int index;
22612261 int64_t rc;
22622262
2263
- if (!res || !res->flags || res->start > res->end)
2263
+ if (!res || !res->flags || res->start > res->end ||
2264
+ res->flags & IORESOURCE_UNSET)
22642265 return;
22652266
22662267 if (res->flags & IORESOURCE_IO) {