Re: [PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section
From: Alastair D'Silva
Date: Wed Jun 26 2019 - 02:31:17 EST
On Wed, 2019-06-26 at 08:23 +0200, Michal Hocko wrote:
> On Wed 26-06-19 16:11:22, Alastair D'Silva wrote:
> > From: Alastair D'Silva <alastair@xxxxxxxxxxx>
> > By adding offset to memmap before passing it in to
> > clear_hwpoisoned_pages,
> > we hide a potentially null memmap from the null check inside
> > clear_hwpoisoned_pages.
> > This patch passes the offset to clear_hwpoisoned_pages instead,
> > allowing
> > memmap to successfully peform it's null check.
> Same issue with the changelog as the previous patch (missing WHY).
The first paragraph explains what the problem is with the existing code
(same applies to 1/3 too).
Alastair D'Silva mob: 0423 762 819