]> 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:28:39 +0000 (16:28 +0200)
commitcf0a88124e357bffda487cbf3cb612bb97eb97e4
tree359d3604f8b3083634daa77a4de335394f3431eb
parent3ddd55cf19ed6cc62def5e3af10c2a9df1b861c3
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