Commit 09f4450a authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds

[PATCH] ppc64: Fix nasty typo in PTE freeing code

There is a typo in the PTE freeing code causing us to possibly
overflow the batch structure.

Obvious fix (look at the closing parentheses).
parent f0cec6ad
...@@ -78,8 +78,8 @@ struct pte_freelist_batch ...@@ -78,8 +78,8 @@ struct pte_freelist_batch
struct page * pages[0]; struct page * pages[0];
}; };
#define PTE_FREELIST_SIZE ((PAGE_SIZE - sizeof(struct pte_freelist_batch) / \ #define PTE_FREELIST_SIZE ((PAGE_SIZE - sizeof(struct pte_freelist_batch)) / \
sizeof(struct page *))) sizeof(struct page *))
extern void pte_free_now(struct page *ptepage); extern void pte_free_now(struct page *ptepage);
extern void pte_free_submit(struct pte_freelist_batch *batch); extern void pte_free_submit(struct pte_freelist_batch *batch);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment