summaryrefslogtreecommitdiff
path: root/sound/core/pcm_iec958.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-07-18 11:28:37 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-07-23 09:04:41 -0300
commitd95daf5accf4a72005daa13fbb1d1bd8709f2861 (patch)
tree4c6159175f2ed1f7afbaba8cd4aa714d86f03002 /sound/core/pcm_iec958.c
parentdf8350ed56a26f502a9636f37faf699a12ee906e (diff)
perf probe: Avoid calling freeing routine multiple times for same pointer
When perf_add_probe_events() we call cleanup_perf_probe_events() for the pev pointer it receives, then, as part of handling this failure the main 'perf probe' goes on and calls cleanup_params() and that will again call cleanup_perf_probe_events()for the same pointer, so just set nevents to zero when handling the failure of perf_add_probe_events() to avoid the double free. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-x8qgma4g813z96dvtw9w219q@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'sound/core/pcm_iec958.c')
0 files changed, 0 insertions, 0 deletions