Home
last modified time | relevance | path

Searched hist:fdef2983 (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/lib/efi_loader/
H A Defi_hii.cfdef2983 Thu Feb 28 16:07:00 CST 2019 Heinrich Schuchardt <xypron.glpk@gmx.de> efi_loader: HII protocols: fix new_package_list()

In new_package_list() we call new_packagelist() to create a new package
list. Next we try to add the packages which fails for form packages. Due
to this error we call free_packagelist(). Now in free_packagelist()
list_del() is called for an uninitialized field hii->link. This leads to
changing random memory addresses.

To solve the problem move the initialization of hii->link to
new_packagelist().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: AKASHI Takahiro <takahiro.akashi@linaro.org>