summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/radixtree.py
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-01-20 15:09:40 +0100
committerRob Herring (Arm) <robh@kernel.org>2025-01-24 15:59:23 -0600
commit15e2f65f2ecfeb8e39315522e2b5cfdc5651fc10 (patch)
tree70d5b8371040882b019cf60ad63fb7fb739e5ae6 /scripts/gdb/linux/radixtree.py
parent14bce187d1600710623d81888da3501bbc470ba2 (diff)
of: address: Fix empty resource handling in __of_address_resource_bounds()
"resource->end" needs to always be equal to "resource->start + size - 1". The previous version of the function did not perform the "- 1" in case of an empty resource. Also make sure to allow an empty resource at address 0. Reported-by: Basharath Hussain Khaja <basharath@couthit.com> Closes: https://lore.kernel.org/lkml/20250108140414.13530-1-basharath@couthit.com/ Fixes: 1a52a094c2f0 ("of: address: Unify resource bounds overflow checking") Cc: stable@vger.kernel.org Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://lore.kernel.org/r/20250120-of-address-overflow-v1-1-dd68dbf47bce@linutronix.de Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/radixtree.py')
0 files changed, 0 insertions, 0 deletions