diff options
| author | Xiaoke Wang <[email protected]> | 2021-12-14 01:28:02 +0000 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2022-01-13 21:23:04 +0000 |
| commit | 8c7224245557707c613f130431cafbaaa4889615 (patch) | |
| tree | 18eebe9541c5bb5d5f6783a2776747cb892cf5b9 /lib/test_stackinit.c | |
| parent | tracing: Account bottom half disabled sections. (diff) | |
| download | kernel-8c7224245557707c613f130431cafbaaa4889615.tar.gz kernel-8c7224245557707c613f130431cafbaaa4889615.zip | |
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/[email protected]
Acked-by: Masami Hiramatsu <[email protected]>
Fixes: 33ea4b24277b ("perf/core: Implement the 'perf_uprobe' PMU")
Signed-off-by: Xiaoke Wang <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
