u-boot/env
Ralph Siemsen 04add62e8c env: sf: report malloc error to caller
In the non-redundant code for env_sf_save(), a failure to malloc() the
temporary buffer produces the following output:

    Saving Environment to SPIFlash... OK

This is misleading as the flash has neither been erased nor written.

Fix it to return an error to the caller, so the output will be:

    Saving Environment to SPIFlash... Failed (-12)

Note that there is another copy of env_sf_save() in the same file, for
handling redundant environment, and it already has the same logic.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
2024-01-29 14:52:23 -05:00
..
attr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
callback.c env: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
common.c Merge branch '2024-01-18-assorted-fixes' 2024-01-19 08:46:47 -05:00
eeprom.c env: eeprom: Remove CONFIG_I2C_ENV_EEPROM_BUS support 2022-12-22 10:31:48 -05:00
embedded.c global: Restrict use of '#include <linux/kconfig.h>' 2023-12-21 08:54:05 -05:00
env.c env: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
ext4.c fs: ext4: Remove unused parameter from ext4_mount 2023-11-16 18:53:09 -05:00
fat.c Add SCSI scan for ENV in EXT4 or FAT 2022-07-08 09:05:47 -04:00
flags.c env: Couple networking-related variable flags to CONFIG_NET 2023-02-10 11:24:08 -05:00
flash.c Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
Kconfig env: Make ENV_IS_IN_SPI_FLASH depend on SPI flash being present 2024-01-22 14:17:35 -05:00
Makefile env: Drop ENV_IS_IN_SATA 2023-02-07 14:33:48 -05:00
mmc.c mmc: env: Unify the U_BOOT_ENV_LOCATION conditions 2023-12-13 11:51:24 -05:00
nand.c Convert CONFIG_ENV_RANGE to Kconfig 2022-06-28 17:11:48 -04:00
nowhere.c env: nowhere: Cosmetic fix 2021-10-31 12:26:44 -06:00
nvram.c env: nvram: Drop CONFIG_SYS_NVRAM_ACCESS_ROUTINE 2022-12-22 10:31:48 -05:00
onenand.c mtd: Remove mtd_erase_callback() entirely 2021-10-23 15:47:33 +05:30
remote.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sf.c env: sf: report malloc error to caller 2024-01-29 14:52:23 -05:00
ubi.c env: ubi: add support of command env erase 2023-01-11 15:02:24 -05:00