aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorZheng Yejian <[email protected]>2023-04-14 15:17:29 +0800
committerSteven Rostedt (Google) <[email protected]>2023-04-25 20:11:26 -0400
commit625ed52717603f0de4c8b5cf163a3bba5cd9a362 (patch)
tree669b7075e58c1dc3ba3d04c92234430a0ceac8b4 /lib/mpi/mpi-mod.c
parent88fe1ec75fcb296579e05eaf3807da3ee83137e4 (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