mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
perf ui browser: Avoid SEGV on title
If the title is NULL then it can lead to a SEGV.
Fixes: 769e6a1e15
("perf ui browser: Don't save pointer to stack memory")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Leo Yan <leo.yan@linux.dev>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240508035301.1554434-2-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
187c219b57
commit
90f01afb0d
@ -203,7 +203,7 @@ void ui_browser__refresh_dimensions(struct ui_browser *browser)
|
||||
void ui_browser__handle_resize(struct ui_browser *browser)
|
||||
{
|
||||
ui__refresh_dimensions(false);
|
||||
ui_browser__show(browser, browser->title, ui_helpline__current);
|
||||
ui_browser__show(browser, browser->title ?: "", ui_helpline__current);
|
||||
ui_browser__refresh(browser);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user