Re: [PATCH, REGRESSION v3] mm: make apply_to_page_range more robust
From: Pekka Enberg
Date: Fri Jan 22 2016 - 02:13:20 EST
On 01/22/2016 01:12 AM, David Rientjes wrote:
NACK to your patch as it is just covering up buggy code silently. The
problem needs to be addressed in change_memory_common() to return if
there is no size to change (numpages == 0). It's a two line fix to
that function.
So add a WARN_ON there to *warn* about the situations. There's really no
need to BUG_ON here.
- Pekka