]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: pfr_update: Fix the driver update version check
authorChen Yu <yu.c.chen@intel.com>
Tue, 22 Jul 2025 14:32:33 +0000 (22:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:09 +0000 (16:26 +0200)
commit79300ff532bccbbf654992c7c0863b49a6c3973c
treeac8a98b07663d0513f0e9b141c5cf4be47bd0a21
parent86b6d34717fe0570afce07ee79b8eeb40341f831
ACPI: pfr_update: Fix the driver update version check

commit 8151320c747efb22d30b035af989fed0d502176e upstream.

The security-version-number check should be used rather
than the runtime version check for driver updates.

Otherwise, the firmware update would fail when the update binary had
a lower runtime version number than the current one.

Fixes: 0db89fa243e5 ("ACPI: Introduce Platform Firmware Runtime Update device driver")
Cc: 5.17+ <stable@vger.kernel.org> # 5.17+
Reported-by: "Govindarajulu, Hariganesh" <hariganesh.govindarajulu@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Link: https://patch.msgid.link/20250722143233.3970607-1-yu.c.chen@intel.com
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/pfr_update.c
include/uapi/linux/pfrut.h