From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Masahisa Kojima <masahisa.kojima@linaro.org>
Cc: u-boot@lists.denx.de, Heinrich Schuchardt <xypron.glpk@gmx.de>,
Simon Glass <sjg@chromium.org>,
Takahiro Akashi <takahiro.akashi@linaro.org>,
Mark Kettenis <mark.kettenis@xs4all.nl>,
Michal Simek <michal.simek@amd.com>,
Ovidiu Panait <ovidiu.panait@windriver.com>,
Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>,
John Keeping <john@metanate.com>,
Chris Morgan <macromorgan@hotmail.com>,
Artem Lapkin <email2tema@gmail.com>,
Huang Jianan <jnhuang95@gmail.com>
Subject: Re: [PATCH v13 1/9] eficonfig: menu-driven addition of UEFI boot option
Date: Wed, 24 Aug 2022 14:15:30 +0300 [thread overview]
Message-ID: <YwYIUv+B3GN0KH7J@hades> (raw)
In-Reply-To: <20220824063740.5760-2-masahisa.kojima@linaro.org>
Hi Kojima-san,
[...]
> + * eficonfig_destroy() - destroy efimenu
> + *
> + * @efi_menu: pointer to the efimenu structure
> + * @flag: flag to free the allocated data
> + */
> +static void eficonfig_destroy(struct efimenu *efi_menu, bool flag)
> +{
> + struct list_head *pos, *n;
> + struct eficonfig_entry *entry;
> +
> + list_for_each_safe(pos, n, &efi_menu->list) {
> + entry = list_entry(pos, struct eficonfig_entry, list);
> + free(entry->title);
> + if (flag)
> + free(entry->data);
I don't we need this flag. entry->data is either set to a valid pointer or
NULL on append_entry().
> + list_del(&entry->list);
> + free(entry);
> + }
> + free(efi_menu->menu_header);
> + free(efi_menu);
[...]
Regards
/Ilias
next prev parent reply other threads:[~2022-08-24 11:15 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 6:37 [PATCH v13 0/9] enable menu-driven UEFI variable maintenance Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 1/9] eficonfig: menu-driven addition of UEFI boot option Masahisa Kojima
2022-08-24 11:15 ` Ilias Apalodimas [this message]
2022-08-25 3:16 ` Masahisa Kojima
2022-08-24 14:19 ` Ilias Apalodimas
2022-08-25 3:17 ` Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 2/9] eficonfig: add "Edit Boot Option" menu entry Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 3/9] menu: add KEY_PLUS, KEY_MINUS and KEY_SPACE handling Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 4/9] eficonfig: add "Delete Boot Option" menu entry Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 5/9] bootmenu: add removable media entries Masahisa Kojima
2022-08-24 13:25 ` Ilias Apalodimas
2022-08-25 3:25 ` Masahisa Kojima
2022-08-25 8:03 ` Ilias Apalodimas
2022-08-25 8:26 ` Masahisa Kojima
2022-08-24 14:17 ` Ilias Apalodimas
2022-08-25 3:27 ` Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 6/9] eficonfig: add "Change Boot Order" menu entry Masahisa Kojima
2022-08-25 0:11 ` Takahiro Akashi
2022-08-25 2:36 ` Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 7/9] doc:bootmenu: add description for UEFI boot support Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 8/9] doc:eficonfig: add documentation for eficonfig command Masahisa Kojima
2022-08-24 9:13 ` Ilias Apalodimas
2022-08-25 2:11 ` Masahisa Kojima
2022-08-24 6:37 ` [PATCH v13 9/9] test: unit test for eficonfig Masahisa Kojima
2022-08-24 9:09 ` Ilias Apalodimas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YwYIUv+B3GN0KH7J@hades \
--to=ilias.apalodimas@linaro.org \
--cc=ashok.reddy.soma@xilinx.com \
--cc=email2tema@gmail.com \
--cc=jnhuang95@gmail.com \
--cc=john@metanate.com \
--cc=macromorgan@hotmail.com \
--cc=mark.kettenis@xs4all.nl \
--cc=masahisa.kojima@linaro.org \
--cc=michal.simek@amd.com \
--cc=ovidiu.panait@windriver.com \
--cc=sjg@chromium.org \
--cc=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.