aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRafael Mendonca <[email protected]>2022-10-25 00:12:08 -0300
committerMasami Hiramatsu (Google) <[email protected]>2022-11-04 08:50:00 +0900
commitd05ea35e7eea14d32f29fd688d3daeb9089de1a5 (patch)
tree06f1b787d0588ff6a658059eda3c77a56a5ad903 /tools/perf/scripts/python
parent4a6f316d6855a434f56dbbeba05e14c01acde8f8 (diff)
fprobe: Check rethook_alloc() return in rethook initialization
Check if fp->rethook succeeded to be allocated. Otherwise, if rethook_alloc() fails, then we end up dereferencing a NULL pointer in rethook_add_node(). Link: https://lore.kernel.org/all/[email protected]/ Fixes: 5b0ab78998e3 ("fprobe: Add exit_handler support") Cc: [email protected] Signed-off-by: Rafael Mendonca <[email protected]> Acked-by: Steven Rostedt (Google) <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions