u-boot-brain/drivers/net/pfe_eth
Simon Glass c5819701a3 image: Adjust the workings of fit_check_format()
At present this function does not accept a size for the FIT. This means
that it must be read from the FIT itself, introducing potential security
risk. Update the function to include a size parameter, which can be
invalid, in which case fit_check_format() calculates it.

For now no callers pass the size, but this can be updated later.

Also adjust the return value to an error code so that all the different
types of problems can be distinguished by the user.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Bruce Monroe <bruce.monroe@intel.com>
Reported-by: Arie Haenel <arie.haenel@intel.com>
Reported-by: Julien Lenoir <julien.lenoir@intel.com>
2021-02-15 22:31:52 -05:00
..
Kconfig configs: ls1012a: add pfe configuration for LS1012A 2018-03-22 15:05:31 -05:00
Makefile drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
pfe_cmd.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pfe_driver.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pfe_eth.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
pfe_firmware.c image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
pfe_hw.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pfe_mdio.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00