aboutsummaryrefslogtreecommitdiff
path: root/kernel/events
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@hotmail.com>2015-08-14 15:34:56 -0700
committerMoyster <oysterized@gmail.com>2016-08-26 20:00:35 +0200
commitf8342d8d5cf35f622c2840843b964d73f8590fb0 (patch)
treee7a669b09a9decaf9601b41091fafbebfb58c626 /kernel/events
parent25a40ced96530c5296b7940332adf92c8c64008e (diff)
mm/hwpoison: fix page refcount of unknown non LRU page
commit 4f32be677b124a49459e2603321c7a5605ceb9f8 upstream. After trying to drain pages from pagevec/pageset, we try to get reference count of the page again, however, the reference count of the page is not reduced if the page is still not on LRU list. Fix it by adding the put_page() to drop the page reference which is from __get_any_page(). Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com> Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions