From 15b1d32152d8df09ddf22e044b494335af8fd7f1 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 7 Apr 2003 22:31:46 -0700 Subject: [PATCH] Fix futexes in hugetlb pages There is a stunning bug. --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/mm.h b/include/linux/mm.h index c6c2eef39d62..5f4bf646e187 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -231,8 +231,8 @@ static inline void get_page(struct page *page) static inline void put_page(struct page *page) { if (PageCompound(page)) { + page = (struct page *)page->lru.next; if (put_page_testzero(page)) { - page = (struct page *)page->lru.next; if (page->lru.prev) { /* destructor? */ (*(void (*)(struct page *))page->lru.prev)(page); } else { -- cgit v1.2.3