Skip to content

Commit

Permalink
7.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jumkey committed Aug 27, 2024
1 parent aacc7fd commit 6b3c756
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions shim/block_fw_update_shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#define DMI_MAX_LEN 512
#define FW_BOARD_NAME "\x53\x79\x6e\x6f\x64\x65\x6e"
#define FW_UPDATE_PATH "./H2OFFT-Lx64"
#define FW_UPDATE_PATH_NEW "./H2OFFT-Lx64-0815"

static char dmi_product_name_backup[DMI_MAX_LEN] = { '\0' };
static void patch_dmi(void)
Expand Down Expand Up @@ -66,8 +67,11 @@ int register_fw_update_shim(void)
{
shim_reg_in();

int out = add_blocked_execve_filename(FW_UPDATE_PATH);
if (out != 0)
int out;
if (
(out = add_blocked_execve_filename(FW_UPDATE_PATH)) != 0
|| (out = add_blocked_execve_filename(FW_UPDATE_PATH_NEW)) != 0
)
return out;

patch_dmi();
Expand Down

0 comments on commit 6b3c756

Please sign in to comment.