u-boot/drivers/core
Heinrich Schuchardt 947d4f132b regmap: fix range checks
On the 32bit ARM sandbox 'dm ut dm_test_devm_regmap' fails with an abort.
This is due to incorrect range checks.

On 32-bit systems the size of size_t and int is both 32 bit. The expression
(offset + val_len) is bound to overflow if offset == -1. Add an overflow
check.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-10-06 22:54:56 +02:00
..
acpi.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
device-remove.c dm: core: Use device_foreach_child where possible 2022-06-28 03:09:51 +01:00
device.c dm: core: Support accessing core tags 2022-06-28 03:09:52 +01:00
devres.c dm: core: Use device_foreach_child where possible 2022-06-28 03:09:51 +01:00
dump.c dm: core: Add a command to show driver model statistics 2022-06-28 03:09:52 +01:00
fdtaddr.c dm: core: Reduce code size with dev_of_offset() 2022-09-29 16:11:14 -04:00
Kconfig dm: core: Add definitions for multiple ofnode trees 2022-09-29 22:43:43 -04:00
lists.c dm: fix logic of lists_bind_fdt() 2022-07-26 02:30:56 -06:00
Makefile vpl: Add Kconfig options for VPL 2022-05-02 09:58:13 -04:00
of_access.c dm: core: Expand integer-reading tests 2022-09-29 22:43:42 -04:00
of_addr.c drivers/core/of_addr.c: Fix spelling of "shouldn't". 2022-01-13 07:57:50 -05:00
of_extra.c net: introduce a helper to determine whether to use in-band autoneg 2021-11-23 09:57:55 +02:00
ofnode.c dm: core: Support copying properties with ofnode 2022-09-29 22:43:43 -04:00
read.c dm: core: Rename ofnode_get_property_by_prop() 2022-09-29 16:11:14 -04:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c regmap: fix range checks 2022-10-06 22:54:56 +02:00
root.c dm: core: Add a way to collect memory usage 2022-06-28 03:09:52 +01:00
simple-bus.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00
simple-pm-bus.c simple-pm-bus: Use -ENOSYS for checking missing system call 2021-04-06 16:33:19 +12:00
syscon-uclass.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00
tag.c dm: core: Add a command to show driver model statistics 2022-06-28 03:09:52 +01:00
uclass.c dm: core: Allow finding a uclass device by partial name 2022-04-25 10:00:03 -04:00
util.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00