Skip to content

Commit 670b511

Browse files
committed
Merge branches 'acpi-apei' and 'acpi-pfrut'
Merge ACPI APEI fixes and an ACPI platform firmware runtime update fix for 6.17-rc3. * acpi-apei: ACPI: APEI: EINJ: Fix resource leak by remove callback in .exit.text ACPI: APEI: EINJ: fix potential NULL dereference in __einj_error_inject() ACPI: APEI: EINJ: Check if user asked for EINJV2 injection * acpi-pfrut: ACPI: pfr_update: Fix the driver update version check
2 parents b21d1fb + 8151320 commit 670b511

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/acpi/pfr_update.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static bool applicable_image(const void *data, struct pfru_update_cap_info *cap,
329329
if (type == PFRU_CODE_INJECT_TYPE)
330330
return payload_hdr->rt_ver >= cap->code_rt_version;
331331

332-
return payload_hdr->rt_ver >= cap->drv_rt_version;
332+
return payload_hdr->svn_ver >= cap->drv_svn;
333333
}
334334

335335
static void print_update_debug_info(struct pfru_updated_result *result,

include/uapi/linux/pfrut.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ struct pfru_payload_hdr {
8989
__u32 hw_ver;
9090
__u32 rt_ver;
9191
__u8 platform_id[16];
92+
__u32 svn_ver;
9293
};
9394

9495
enum pfru_dsm_status {

0 commit comments

Comments
 (0)