diff options
author | Daniil Tatianin <d-tatianin@yandex-team.ru> | 2022-11-14 17:31:29 +0300 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-11-17 17:10:40 -0500 |
commit | 56f4ca0a79a9f1af98f26c54b9b89ba1f9bcc6bd (patch) | |
tree | b72c17d1e457578b5650cef39bf861e261608202 /lib/fdt_sw.c | |
parent | bcea02b096333dc74af987cb9685a4dbdd820840 (diff) | |
download | linux-56f4ca0a79a9f1af98f26c54b9b89ba1f9bcc6bd.tar.bz2 |
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/20221114143129.3534443-1-d-tatianin@yandex-team.ru
Cc: stable@vger.kernel.org
Fixes: 77ae365eca895 ("ring-buffer: make lockless")
Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'lib/fdt_sw.c')
0 files changed, 0 insertions, 0 deletions