Subject: perf top: fix builtin-top build breakage. In 5.0 -stable queue, backported upstream commit 0dba9e4be95b (perf top: Delete the evlist before perf_session, fixing heap-use-after-free issue) causes the perf build to break with: builtin-top.c: In function '__cmd_top': builtin-top.c:1241:3: error: label 'out_delete' used but not defined goto out_delete; ^~~~ This does not happend in upstream linus tree as the affected code is removed in commit 159b0da50adb (perf pmu: Remove set_drv_config API) that I assume is not ok to backport in -stable trees. Fix it up like other code in commit 0dba9e4be95b. Signed-off-by: Thomas Backlund --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -1238,7 +1238,7 @@ static int __cmd_top(struct perf_top *to pr_err("failed to set config \"%s\" on event %s with %d (%s)\n", err_term->val.drv_cfg, perf_evsel__name(pos), errno, str_error_r(errno, msg, sizeof(msg))); - goto out_delete; + return ret; } top->session->evlist = top->evlist;