diff options
author | Zheng Yejian <zhengyejian1@huawei.com> | 2023-04-14 10:17:29 +0300 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-04-26 03:11:26 +0300 |
commit | 625ed52717603f0de4c8b5cf163a3bba5cd9a362 (patch) | |
tree | 669b7075e58c1dc3ba3d04c92234430a0ceac8b4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 88fe1ec75fcb296579e05eaf3807da3ee83137e4 (diff) | |
download | linux-625ed52717603f0de4c8b5cf163a3bba5cd9a362.tar.xz |
ring-buffer: Clearly check null ptr returned by rb_set_head_page()
In error case, 'buffer_page' returned by rb_set_head_page() is NULL,
currently check '&buffer_page->list' is equivalent to check 'buffer_page'
due to 'list' is the first member of 'buffer_page', but suppose it is not
some time, 'head_page' would be wild memory while check would be bypassed.
Link: https://lore.kernel.org/linux-trace-kernel/20230414071729.57312-1-zhengyejian1@huawei.com
Cc: <mhiramat@kernel.org>
Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions