]> git.baikalelectronics.ru Git - uboot.git/commit
spl: fit: Skip attempting to load 0 length image
authorNishanth Menon <nm@ti.com>
Tue, 19 Oct 2021 17:32:29 +0000 (12:32 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 1 Dec 2021 21:28:45 +0000 (16:28 -0500)
commit9060540df9e8d02182f7697f74e14d94cc48110a
treedbd895067824be9bfa258710e4869d3573314b88
parentd1b4a9bae69bf4c9081945acdff01ca2a0ca75bb
spl: fit: Skip attempting to load 0 length image

When, for various reasons, a bad FIT image is used where a loadable
image is marked as 0 length, attempt is made for a 0 length allocation and
read of 0 byte read operation.

Instead provide warning in log and skip attempting to do such a load.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Aswath Govindraju <a-govindraju@ti.com>
common/spl/spl_fit.c