diff options
Diffstat (limited to 'scripts/gdb/linux/radixtree.py')
-rw-r--r-- | scripts/gdb/linux/radixtree.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gdb/linux/radixtree.py b/scripts/gdb/linux/radixtree.py index 3ca2db7fbbac..074543ac763d 100644 --- a/scripts/gdb/linux/radixtree.py +++ b/scripts/gdb/linux/radixtree.py @@ -58,6 +58,9 @@ def lookup(root, index): offset = (index >> node['shift']) & constants.LX_RADIX_TREE_MAP_MASK slot = node['slots'][offset] + if slot == 0: + return None + node = slot.cast(node.type.pointer()).dereference() if node == 0: return None |