From ec5a5d7abf32230450265d20857261b049fef2d5 Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Tue, 15 Jun 2021 14:41:37 +0800 Subject: [PATCH] amdfwtool: Fix the NULL pointer in parameters Change-Id: Ia2c65013d48fc1ad88d3caf6ef59824745c992de Signed-off-by: Zheng Bao Reviewed-on: https://review.coreboot.org/c/coreboot/+/55550 Reviewed-by: Martin Roth Tested-by: build bot (Jenkins) --- util/amdfwtool/amdfwtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 9299aecec6..b4d1c0c5c6 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -1597,7 +1597,7 @@ int main(int argc, char **argv) combo_dir->entries[0].lvl2_addr = BUFF_TO_RUN(ctx, pspdir); combo_dir->header.lookup = 1; - fill_dir_header(combo_dir, 1, PSP2_COOKIE, NULL); + fill_dir_header(combo_dir, 1, PSP2_COOKIE, &ctx); #endif if (have_bios_tables(amd_bios_table)) {