u-boot/drivers/core
Alexander Preißner fe67ba7418 drivers: core: lists: fix for loop index type
* fixes the bug in function bind_drivers_pass that for
CONFIG_CC_OPTIMIZE_FOR_SIZE=n and no entries in the driver_info list,
i.e. n_ents == 0, the processor steps into the first loop iteration
despite the loop condition being false.
* the Xilinx Zynq-7000 device would eventually hang due to an attempted
access to an invalid memory address
* the bug is fixed by changing the type of idx from uint to int

Board: zynq-zybo
Target: ARM
Compiler: arm-none-eabi-gcc 9.2.1

Signed-off-by: Alexander Preissner <fpga-garage@preissner-muc.de>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
2021-12-02 09:15:43 -07:00
..
acpi.c dm: core: Use -ENOSPC in acpi_get_path() 2021-04-06 16:33:19 +12:00
device-remove.c dm: core: Fix handling of uclass pre_unbind method 2021-11-28 16:51:51 -07:00
device.c dm: add debug message when failed to select the default pinctrl 2021-12-01 13:33:45 -05:00
devres.c dm: core: Access device flags through functions 2021-01-05 12:24:41 -07:00
dump.c dm: core: Check uclass_get() return value when dumping 2021-07-15 18:42:05 -04:00
fdtaddr.c dm: core: Add a new API devfdt_get_addr_index_ptr() 2021-10-20 10:59:09 +08:00
Kconfig Kconfig: Remove all default n/no options 2021-08-31 17:47:49 -04:00
lists.c drivers: core: lists: fix for loop index type 2021-12-02 09:15:43 -07:00
Makefile dm: Avoid using #ifdef for CONFIG_OF_LIVE 2020-10-29 14:42:17 -06:00
of_access.c dm: core: Fix up string-function documentation 2021-11-28 16:51:51 -07:00
of_addr.c of: addr: Remove call to dev_count_cells() in of_get_address() 2021-06-05 07:35:34 -06: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: Add a way to obtain a string list 2021-11-28 16:51:51 -07:00
read.c dm: core: Add a way to obtain a string list 2021-11-28 16:51:51 -07: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 reset: Avoid a warning in devm_regmap_init() 2021-07-15 18:42:05 -04:00
root.c - Disable ATAGS for STM32 MCU and MPU boards 2021-10-12 12:01:00 -04: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
uclass.c dm: core: Add a way to count the devices in a uclass 2021-11-28 16:51:51 -07:00
util.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00