aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/slab.py
diff options
context:
space:
mode:
authorAlex Williamson <[email protected]>2023-10-02 16:43:25 -0600
committerAlex Williamson <[email protected]>2023-10-09 15:56:09 -0600
commitbd885fcf28da7da6a2244d30cd45630303c781ed (patch)
treec10f395203c517f97c0a4a983a509bb5a992ecf2 /scripts/gdb/linux/slab.py
parentf9af5ad0f5b599fadf6fc7c9c2153d7919c7691e (diff)
vfio: Fix smatch errors in vfio_combine_iova_ranges()
smatch reports: vfio_combine_iova_ranges() error: uninitialized symbol 'last'. vfio_combine_iova_ranges() error: potentially dereferencing uninitialized 'comb_end'. vfio_combine_iova_ranges() error: potentially dereferencing uninitialized 'comb_start'. These errors are only reachable via invalid input, in the case of @last when we receive an empty rb-tree or for @comb_{start,end} if the rb-tree is empty or otherwise fails to produce a second node that reduces the gap. Add tests with warnings for these cases. Reported-by: Cong Liu <[email protected]> Link: https://lore.kernel.org/all/[email protected] Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Brett Creeley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions