Re: [PATCH] perf bench: Fix NULL pointer dereference in "perf bench all"

2014-03-13 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 13, 2014 at 10:47:58AM -0400, Patrick Palka escreveu: > On Thu, Mar 13, 2014 at 10:34 AM, Arnaldo Carvalho de Melo > wrote: > > Em Wed, Mar 12, 2014 at 06:40:51PM -0400, Patrick Palka escreveu: > >> for_each_bench() must check that the "benchmarks" field of a collection > >> is not

Re: [PATCH] perf bench: Fix NULL pointer dereference in "perf bench all"

2014-03-13 Thread Patrick Palka
On Thu, Mar 13, 2014 at 10:34 AM, Arnaldo Carvalho de Melo wrote: > Em Wed, Mar 12, 2014 at 06:40:51PM -0400, Patrick Palka escreveu: >> for_each_bench() must check that the "benchmarks" field of a collection >> is not NULL before dereferencing it because the "all" collection in >> particular has

Re: [PATCH] perf bench: Fix NULL pointer dereference in "perf bench all"

2014-03-13 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 12, 2014 at 06:40:51PM -0400, Patrick Palka escreveu: > for_each_bench() must check that the "benchmarks" field of a collection > is not NULL before dereferencing it because the "all" collection in > particular has a NULL "benchmarks" field (signifying that it has no > benchmarks to

Re: [PATCH] perf bench: Fix NULL pointer dereference in perf bench all

2014-03-13 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 12, 2014 at 06:40:51PM -0400, Patrick Palka escreveu: for_each_bench() must check that the benchmarks field of a collection is not NULL before dereferencing it because the all collection in particular has a NULL benchmarks field (signifying that it has no benchmarks to iterate

Re: [PATCH] perf bench: Fix NULL pointer dereference in perf bench all

2014-03-13 Thread Patrick Palka
On Thu, Mar 13, 2014 at 10:34 AM, Arnaldo Carvalho de Melo a...@ghostprotocols.net wrote: Em Wed, Mar 12, 2014 at 06:40:51PM -0400, Patrick Palka escreveu: for_each_bench() must check that the benchmarks field of a collection is not NULL before dereferencing it because the all collection in

Re: [PATCH] perf bench: Fix NULL pointer dereference in perf bench all

2014-03-13 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 13, 2014 at 10:47:58AM -0400, Patrick Palka escreveu: On Thu, Mar 13, 2014 at 10:34 AM, Arnaldo Carvalho de Melo a...@ghostprotocols.net wrote: Em Wed, Mar 12, 2014 at 06:40:51PM -0400, Patrick Palka escreveu: for_each_bench() must check that the benchmarks field of a collection

[PATCH] perf bench: Fix NULL pointer dereference in "perf bench all"

2014-03-12 Thread Patrick Palka
for_each_bench() must check that the "benchmarks" field of a collection is not NULL before dereferencing it because the "all" collection in particular has a NULL "benchmarks" field (signifying that it has no benchmarks to iterate over). This fixes a NULL pointer dereference when running "perf

[PATCH] perf bench: Fix NULL pointer dereference in perf bench all

2014-03-12 Thread Patrick Palka
for_each_bench() must check that the benchmarks field of a collection is not NULL before dereferencing it because the all collection in particular has a NULL benchmarks field (signifying that it has no benchmarks to iterate over). This fixes a NULL pointer dereference when running perf bench all.