]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/powerpc/platforms/pseries/eeh_pe.c
powerpc/eeh: Do not invalidate PE properly
[~shefty/rdma-dev.git] / arch / powerpc / platforms / pseries / eeh_pe.c
index 797cd181dc3f615fab312df9ccce4813263eedf4..d16c8ded10847ce19d67f26a39179587707ddbf0 100644 (file)
@@ -449,7 +449,7 @@ int eeh_rmv_from_parent_pe(struct eeh_dev *edev, int purge_pe)
                        if (list_empty(&pe->edevs)) {
                                cnt = 0;
                                list_for_each_entry(child, &pe->child_list, child) {
-                                       if (!(pe->type & EEH_PE_INVALID)) {
+                                       if (!(child->type & EEH_PE_INVALID)) {
                                                cnt++;
                                                break;
                                        }