Re: [PATCH] perf report powerpc: Fix crash if callchain is empty

From: Arnaldo Carvalho de Melo
Date: Wed Jun 13 2018 - 15:58:09 EST


Em Tue, Jun 12, 2018 at 09:28:09AM +0530, Ravi Bangoria escreveu:
> On 06/11/2018 04:10 PM, Sandipan Das wrote:
> > For some cases, the callchain provided by the kernel may be
> > empty. So, the callchain ip filtering code will cause a crash
> > if we do not check whether the struct ip_callchain pointer is
> > NULL before accessing any members.
<SNIP>
> > Reported-by: Ravi Bangoria <ravi.bangoria@xxxxxxxxxxxxx>

> Acked-by: Ravi Bangoria <ravi.bangoria@xxxxxxxxxxxxx>

Thanks,

- Arnaldo