u-boot/drivers/cpu
Ovidiu Panait 3f351cd358 cpu: microblaze: add error handling in microblaze_cpu_get_desc()
Check snprintf() return value for errors.

Make microblaze_cpu_get_desc() directly return snprintf() error code if
ret < 0. Otherwise, if the return value is greater than or equal to size,
the resulting string is truncated, so return -ENOSPC.

Fixes: 816226d27e ("cpu: add CPU driver for microblaze")
Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220829170205.1274484-2-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
2022-09-13 11:32:48 +02:00
..
at91_cpu.c cpu: at91: add compatible for ARM9260EJ-S 2021-09-21 10:05:37 +03:00
bmips_cpu.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
cpu-uclass.c cpu-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC 2022-06-24 14:16:00 +02:00
cpu_sandbox.c sandbox: correct cpu nodes 2021-09-25 09:46:15 -06:00
imx8_cpu.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig cpu: add CPU driver for microblaze 2022-06-24 14:16:00 +02:00
Makefile cpu: add CPU driver for microblaze 2022-06-24 14:16:00 +02:00
microblaze_cpu.c cpu: microblaze: add error handling in microblaze_cpu_get_desc() 2022-09-13 11:32:48 +02:00
mpc83xx_cpu.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mpc83xx_cpu.h cpu: Add MPC83xx CPU driver 2018-09-18 08:12:21 -06:00
riscv_cpu.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00