common/spl: Revert fix potential out of buffer access in spl_fit_get_image_name function
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 24 Jun 2025 15:34:30 +0000 (17:34 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 26 Jun 2025 17:58:17 +0000 (11:58 -0600)
commit6ef9a89c1da433108ac89deab58954c6e2b798ba
tree3dbc4b33faf9da45e90a0138785caff7bc82a8f6
parent8bb9c275c484206c0314014d8215770aaac4cefe
common/spl: Revert fix potential out of buffer access in spl_fit_get_image_name function

The change in commit 3704b888a4ca ("common/spl: fix potential out of buffer
access in spl_fit_get_image_name function") led to function
spl_fit_get_image_name() no longer detecting if a property does not exist
at a non-zero buffer.

Link: https://lore.kernel.org/u-boot/38f5d078-3328-4bdb-9c95-4fb5fe89ddc2@gmx.de/T/#m59f3a23e675daa992c28d12236de71cae2ca2bb9
Fixes: 3704b888a4ca ("common/spl: fix potential out of buffer access in spl_fit_get_image_name function")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: E Shattow <e@freeshell.de>
common/spl/spl_fit.c