[PATCH] menu: add support for client defined statusline function

Tom Rini trini at konsulko.com
Thu May 7 15:03:21 CEST 2020


On Wed, Mar 18, 2020 at 11:38:42AM -0700, Thirupathaiah Annapureddy wrote:

> Currently displaying status line is done in a weak function
> menu_display_statusline().
> 
> bootmenu.c overrides the weak default function.
> It calls menu_default_choice() and interprets the data as
> struct bootmenu_entry.
> 
> pxe boot also uses common menu code for pxe menus.
> If there is a system that enables both bootmenu and pxe,
> menu_display_statusline() defined in bootmenu.c will be called
> and it will interpret struct pxe_label as struct bootmenu_entry.
> This leads to data aborts and pxe menu corruptions.
> 
> This patch adds support for client defined statusline function
> to resolve the above bug.
> 
> Signed-off-by: Thirupathaiah Annapureddy <thiruan at linux.microsoft.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200507/387f2d4e/attachment.sig>


More information about the U-Boot mailing list