Re: [PATCH v15 1/2] Reorganize the oom report in dump_header

From: Michal Hocko
Date: Fri Nov 02 2018 - 04:36:02 EST


On Fri 02-11-18 14:18:59, çèé wrote:
> Hi Michal
> The message-id is as below
> https://lkml.org/lkml/2018/7/31/148

David said
: It's possible that p is NULL when calling dump_header(). In this case we
: do not want to print any line concerning a victim because no oom kill has
: occurred.

This means that we should check for p rather than oc.

--
Michal Hocko
SUSE Labs