]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf config: Check error cases of {show_spec, set}_config()
authorTaeung Song <treeze.taeung@gmail.com>
Sat, 17 Jun 2017 03:46:37 +0000 (12:46 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Jun 2017 01:05:54 +0000 (22:05 -0300)
commit4f1fd74283582f3f5c34d1c9ed55117d775b4a20
treecdb3dfeb686a9608759d51b1937a16845a3a69de
parent1096c35aa821cc4789a64232a0e210bb87a0e5e8
perf config: Check error cases of {show_spec, set}_config()

show_spec_config() and set_config() can be called multiple times
in the loop in cmd_config().

However, The error cases of them wasn't checked, so fix it.

Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1497671197-20450-1-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-config.c