diff options
author | Daniil Tatianin <[email protected]> | 2022-11-14 17:31:29 +0300 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2022-11-17 17:10:40 -0500 |
commit | 56f4ca0a79a9f1af98f26c54b9b89ba1f9bcc6bd (patch) | |
tree | b72c17d1e457578b5650cef39bf861e261608202 /lib/mpi/mpi-sub-ui.c | |
parent | bcea02b096333dc74af987cb9685a4dbdd820840 (diff) |
ring_buffer: Do not deactivate non-existant pages
rb_head_page_deactivate() expects cpu_buffer to contain a valid list of
->pages, so verify that the list is actually present before calling it.
Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.
Link: https://lkml.kernel.org/r/[email protected]
Cc: [email protected]
Fixes: 77ae365eca895 ("ring-buffer: make lockless")
Signed-off-by: Daniil Tatianin <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions