summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@oracle.com>2023-04-14 17:57:27 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-04-19 00:22:13 +0300
commit06e8fd999334bcd76b4d72d7b9206d4aea89764e (patch)
tree07ea252b9f0fad088ef0c4a22de9bbd057807461 /tools/perf/scripts/python/export-to-sqlite.py
parentfad8e4291da5e3243e086622df63cb952db444d8 (diff)
downloadlinux-06e8fd999334bcd76b4d72d7b9206d4aea89764e.tar.xz
maple_tree: fix mas_empty_area() search
The internal function of mas_awalk() was incorrectly skipping the last entry in a node, which could potentially be NULL. This is only a problem for the left-most node in the tree - otherwise that NULL would not exist. Fix mas_awalk() by using the metadata to obtain the end of the node for the loop and the logical pivot as apposed to the raw pivot value. Link: https://lkml.kernel.org/r/20230414145728.4067069-2-Liam.Howlett@oracle.com Fixes: 54a611b60590 ("Maple Tree: add new data structure") Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reported-by: Rick Edgecombe <rick.p.edgecombe@intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions