Re: [PATCH v7 10/13] perf tools: fix NULL point in evsel__env()

From: Kim Phillips
Date: Wed Mar 23 2022 - 15:01:30 EST


On 3/22/22 5:15 PM, Stephane Eranian wrote:
evsel_env() cannot return NULL. In case evsel->evlist->env is NULL default
to perf_env. Fixes crashes in evsel__open_strerror()

Signed-off-by: Ravi Bangoria <ravi.bangoria@xxxxxxx>
Reviewed-by: Stephane Eranian <eranian@xxxxxxxxxx>
---

Signed-off-by: Kim Phillips <kim.phillips@xxxxxxx>

FWIW, here's a link to one of the original submissions:

https://lkml.org/lkml/2022/1/26/1220

Thanks,

Kim