Skip to content
Commit 8c722424 authored by Xiaoke Wang's avatar Xiaoke Wang Committed by Steven Rostedt
Browse files

tracing/uprobes: Check the return value of kstrdup() for tu->filename

kstrdup() returns NULL when some internal memory errors happen, it is
better to check the return value of it so to catch the memory error in
time.

Link: https://lkml.kernel.org/r/tencent_3C2E330722056D7891D2C83F29C802734B06@qq.com



Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Fixes: 33ea4b24 ("perf/core: Implement the 'perf_uprobe' PMU")
Signed-off-by: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 289e7b0f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment