HWPOISON: Fix page count leak in hwpoison late kill in do_swap_page
authorAndi Kleen <ak@linux.intel.com>
Tue, 13 Oct 2009 23:51:41 +0000 (01:51 +0200)
committerAndi Kleen <ak@linux.intel.com>
Mon, 19 Oct 2009 05:29:20 +0000 (07:29 +0200)
commit4779cb31c0ee3b355116745edca3f3e5fe865553
tree7409cb0762ca55afe11aa981db4624d3496ed6fb
parente43c3afb367112a5b357f9adfac7817255129c88
HWPOISON: Fix page count leak in hwpoison late kill in do_swap_page

When returning due to a poisoned page drop the page count.

It wasn't a fatal problem because noone cares about the page count
on a poisoned page (except when it wraps), but it's cleaner to fix it.

Pointed out by Linus.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
mm/memory.c