]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ppc64: Fix nasty typo in PTE freeing code
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 6 May 2004 23:52:14 +0000 (16:52 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 6 May 2004 23:52:14 +0000 (16:52 -0700)
There is a typo in the PTE freeing code causing us to possibly
overflow the batch structure.

Obvious fix (look at the closing parentheses).

include/asm-ppc64/pgalloc.h

index 43c70d211c57d875bfc65fc82b0c7415dacfc55d..251bbd9a535cc0971a63c22a48472b1fa574c69d 100644 (file)
@@ -78,8 +78,8 @@ struct pte_freelist_batch
        struct page *   pages[0];
 };
 
-#define PTE_FREELIST_SIZE      ((PAGE_SIZE - sizeof(struct pte_freelist_batch) / \
-                                 sizeof(struct page *)))
+#define PTE_FREELIST_SIZE      ((PAGE_SIZE - sizeof(struct pte_freelist_batch)) / \
+                                 sizeof(struct page *))
 
 extern void pte_free_now(struct page *ptepage);
 extern void pte_free_submit(struct pte_freelist_batch *batch);