summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-01-20 15:09:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 10:05:13 +0100
commite62c630810202ee01d276a1982ecc7f59098d5ec (patch)
tree13316aaa5388a093a0730e417552c25012dc74bb /scripts/patch-kernel
parent45ad3c7d62ebcaf2f8b871f1e7b90d3ecd94ed6b (diff)
downloadlinux-e62c630810202ee01d276a1982ecc7f59098d5ec.tar.gz
linux-e62c630810202ee01d276a1982ecc7f59098d5ec.tar.bz2
linux-e62c630810202ee01d276a1982ecc7f59098d5ec.zip
of: address: Fix empty resource handling in __of_address_resource_bounds()
commit 15e2f65f2ecfeb8e39315522e2b5cfdc5651fc10 upstream. "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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions