]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix futexes in hugetlb pages
authorAndrew Morton <akpm@digeo.com>
Tue, 8 Apr 2003 05:31:46 +0000 (22:31 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 8 Apr 2003 05:31:46 +0000 (22:31 -0700)
There is a stunning bug.

include/linux/mm.h

index c6c2eef39d626b4b53908e96a9e6a3cff959d3c9..5f4bf646e1876ab1dcf61516b62a324d5868bf1a 100644 (file)
@@ -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 {