diff options
author | Weijie Gao <weijie.gao@mediatek.com> | 2025-05-06 15:15:01 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-23 08:00:51 -0600 |
commit | 7c52bca8121fdd967edf24402590b8aacf4fd23a (patch) | |
tree | 02351d1f62544c4365e37c24025c83fa95fa21cb /lib/efi_loader/efi_device_path_utilities.c | |
parent | df5dcf7b7eb66f74262c5e501f813aac759557f2 (diff) |
env: mtd: fix usability with NAND flashes
1. As this is for MTD-based devices, the Kconfig dependency should be MTD
instead of only spi-nor flashes
2. Initialize saved_buf to avoid crash on free()
3. Remaining size should be set correctly to write_size
Fixes: 03fb08d4aef (env: Introduce support for MTD)
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'lib/efi_loader/efi_device_path_utilities.c')
0 files changed, 0 insertions, 0 deletions