]> www.infradead.org Git - nvme.git/commit
perf unwind-libunwind: Add malloc() failure handling
authorYunseong Kim <yskelg@gmail.com>
Wed, 19 Jun 2024 20:42:12 +0000 (05:42 +0900)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 25 Jun 2024 18:06:20 +0000 (11:06 -0700)
commit83da316a3bb6de327a070471584be4a0165bee7f
treea6d02d8da23adc1bf765c4f9f03475a11ff84707
parente9ffa312ff06cde77c4a6395c411c5ebde738f04
perf unwind-libunwind: Add malloc() failure handling

Add malloc() failure handling in unread_unwind_spec_debug_frame().
This make caller find_proc_info() works well when the allocation failure.

Signed-off-by: Yunseong Kim <yskelg@gmail.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Austin Kim <austindh.kim@gmail.com>
Cc: shjy180909@gmail.com
Cc: Ze Gao <zegao2021@gmail.com>
Cc: Leo Yan <leo.yan@linux.dev>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240619204211.6438-2-yskelg@gmail.com
tools/perf/util/unwind-libunwind-local.c