diff options
| author | Jens Axboe <[email protected]> | 2023-02-24 16:54:57 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-02-24 19:58:31 +0000 |
| commit | 977bc87356107fb946fb4ff24f1e4c241b5043ec (patch) | |
| tree | f600ef39029c1c97b4f2aaadd749bab8d8affdb7 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | io_uring/rsrc: optimise registered huge pages (diff) | |
| download | kernel-977bc87356107fb946fb4ff24f1e4c241b5043ec.tar.gz kernel-977bc87356107fb946fb4ff24f1e4c241b5043ec.zip | |
io_uring/rsrc: always initialize 'folio' to NULL
Smatch complains that:
smatch warnings:
io_uring/rsrc.c:1262 io_sqe_buffer_register() error: uninitialized symbol 'folio'.
'folio' may be used uninitialized, which can happen if we end up with a
single page mapped. Ensure that we clear folio to NULL at the top so
it's always set.
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
