diff options
author | Zheng Yejian <[email protected]> | 2023-04-14 15:17:29 +0800 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-04-25 20:11:26 -0400 |
commit | 625ed52717603f0de4c8b5cf163a3bba5cd9a362 (patch) | |
tree | 669b7075e58c1dc3ba3d04c92234430a0ceac8b4 /lib/mpi/mpi-mod.c | |
parent | 88fe1ec75fcb296579e05eaf3807da3ee83137e4 (diff) |
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/[email protected]
Cc: <[email protected]>
Signed-off-by: Zheng Yejian <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions