]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/xtensa/mm/tlb.c
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / arch / xtensa / mm / tlb.c
index 5ece856c5725c7cc72d0a0175bf9229330fabec5..35c822286bbe8b194e654cceef50972c260922c6 100644 (file)
@@ -245,7 +245,7 @@ static int check_tlb_entry(unsigned w, unsigned e, bool dtlb)
                                                page_mapcount(p));
                                if (!page_count(p))
                                        rc |= TLB_INSANE;
-                               else if (page_mapped(p))
+                               else if (page_mapcount(p))
                                        rc |= TLB_SUSPICIOUS;
                        } else {
                                rc |= TLB_INSANE;