Re: [PATCH v2] perf unwind: handle allocation failure in libdw__get_entries()
| Newsgroups | org.kernel.vger.linux-perf-users |
|---|---|
| Message-ID | <[email protected]> |
> Check the return value of zalloc() before dereferencing the allocated > dwfl_ui_ti structure. > > Return -ENOMEM when the allocation fails to avoid a NULL pointer > dereference. > > Signed-off-by: Triet Hoang <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1