Re: [PATCH v5 1/7] arm: mach-k3: Explicitly identify TIFSSTUB images when discarding buffers
Bryan Brattlof <[email protected]> Mon, 20 Jul 2026 08:04:19 -0500
| Newsgroups | de.denx.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
On July 20, 2026 thus sayeth Beleswar Padhi: > The board_fit_image_post_process() function assumes that all TIFSSTUB > images appear at the end of the image_os_match[] array by using > the condition: > > i < IMAGE_AMT && i > IMAGE_ID_DM_FW > > However, this assumption breaks when new image types are appended to the > enum and the array, causing unintended image types to match this > condition and having their buffer sizes incorrectly set to 0 with: > > *p_size = 0 > > To avoid this issue, replace the range-based check with an explicit > match for TIFSSTUB image IDs. > Is this needed anymore? I think Aristo has already fixed this[0] [0] https://lore.kernel.org/u-boot/[email protected]/ ~Bryan