diff options
-rw-r--r-- | kexec/arch/ppc64/kexec-ppc64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c index 5802522..d17761d 100644 --- a/kexec/arch/ppc64/kexec-ppc64.c +++ b/kexec/arch/ppc64/kexec-ppc64.c @@ -117,7 +117,8 @@ static int count_memory_ranges() } while ((dentry = readdir(dir)) != NULL) { - if (strncmp(dentry->d_name, "memory@", 7)) + if (strncmp(dentry->d_name, "memory@", 7) && + strncmp(dentry->d_name, "pci@", 4)) continue; max_memory_ranges++; } |