Re: [PATCH] perf evsel: fix NULL pointer deference when evsel->counts is NULL

2013-01-23 Thread Colin Ian King
On 23/01/13 22:02, Arnaldo Carvalho de Melo wrote: Em Mon, Jan 21, 2013 at 01:53:21PM +0900, Namhyung Kim escreveu: On Sat, 19 Jan 2013 16:36:54 +, Colin King wrote: From: Colin Ian King __perf_evsel__read_on_cpu() only bails out with -ENOMEM if evsel->counts is NULL and perf_evsel__all

Re: [PATCH] perf evsel: fix NULL pointer deference when evsel->counts is NULL

2013-01-23 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 21, 2013 at 01:53:21PM +0900, Namhyung Kim escreveu: > On Sat, 19 Jan 2013 16:36:54 +, Colin King wrote: > > From: Colin Ian King > > __perf_evsel__read_on_cpu() only bails out with -ENOMEM if > > evsel->counts is NULL and perf_evsel__alloc_counts() has returned > > an error. If

Re: [PATCH] perf evsel: fix NULL pointer deference when evsel->counts is NULL

2013-01-20 Thread Namhyung Kim
Hi Colin, On Sat, 19 Jan 2013 16:36:54 +, Colin King wrote: > From: Colin Ian King > > __perf_evsel__read_on_cpu() only bails out with -ENOMEM if > evsel->counts is NULL and perf_evsel__alloc_counts() has returned > an error. If perf_evsel__alloc_counts() does not return an error > we get an

[PATCH] perf evsel: fix NULL pointer deference when evsel->counts is NULL

2013-01-19 Thread Colin King
From: Colin Ian King __perf_evsel__read_on_cpu() only bails out with -ENOMEM if evsel->counts is NULL and perf_evsel__alloc_counts() has returned an error. If perf_evsel__alloc_counts() does not return an error we get an NULL pointer deference on evsel->counts->cpu[cpu] if evsel->counts is NULL.