Re: [PATCH 1/2] mm/hwpoison-inject: fix refcounting in no-injection case

2015-04-23 Thread Dean Nelson
On 04/16/2015 09:08 PM, Naoya Horiguchi wrote: > Hwpoison injection via debugfs:hwpoison/corrupt-pfn takes a refcount of > the target page. But current code doesn't release it if the target page > is not supposed to be injected, which results in memory leak. > This patch simply adds the refcount re

[PATCH 1/2] mm/hwpoison-inject: fix refcounting in no-injection case

2015-04-16 Thread Naoya Horiguchi
Hwpoison injection via debugfs:hwpoison/corrupt-pfn takes a refcount of the target page. But current code doesn't release it if the target page is not supposed to be injected, which results in memory leak. This patch simply adds the refcount releasing code. Signed-off-by: Naoya Horiguchi --- mm/