[PATCH] fdt: check fdt_pack() return value in fdtdec_apply_bloblist_dtos()
Simon Glass
sjg at chromium.org
Mon May 4 14:09:38 CEST 2026
On 2026-04-29T06:22:08, Michal Simek <michal.simek at amd.com> wrote:
> fdt: check fdt_pack() return value in fdtdec_apply_bloblist_dtos()
>
> The fdt_pack() function can return an error code, but its return value
> was not being checked. Add proper error handling to propagate any
> failure.
>
> Also fix typo in comment: 'Shink' -> 'Shrink'.
>
> Addresses-Coverity-ID: CID 645839: Error handling issues (CHECKED_RETURN)
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> Reviewed-by: Alexander Sverdlin <alexander.sverdlin at siemens.com>
>
> lib/fdtdec.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list