FAILED: patch "[PATCH] platform/x86: lenovo-wmi-other: Zero initialize WMI arguments" failed to apply to 6.18-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.18-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y
git checkout FETCH_HEAD
git cherry-pick -x 816fbd5dacee977ca56bab79bf97f71f2f7ac24e
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026052001-striving-endocrine-d192@gregkh' --subject-prefix 'PATCH 6.18.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 816fbd5dacee977ca56bab79bf97f71f2f7ac24e Mon Sep 17 00:00:00 2001
From: "Derek J. Clark" <[email protected]>
Date: Sun, 10 May 2026 04:25:34 +0000
Subject: [PATCH] platform/x86: lenovo-wmi-other: Zero initialize WMI arguments
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Adds explicit initialization of wmi_method_args_32 declarations with zero values to prevent uninitialized data from being sent to the device BIOS when passed.
No functional change intended.
drivers/platform/x86/lenovo/wmi-gamezone.c +1 -1
@@ -201,7 +201,7 @@ static int lwmi_gz_profile_set(struct device *dev, enum platform_profile_option profile) {struct lwmi_gz_priv *priv =dev_get_drvdata (dev); -struct wmi_method_args_32 args; +struct wmi_method_args_32 args = {};enum thermal_mode mode;int ret;
drivers/platform/x86/lenovo/wmi-other.c +3 -3
@@ -166,7 +166,7 @@ MODULE_PARM_DESC(relax_fan_constraint,*/ static int lwmi_om_fan_get_set (struct lwmi_om_priv *priv,int channel,u32 *val,bool set) { -struct wmi_method_args_32 args; +struct wmi_method_args_32 args = {};u32 method_id, retval;int err;
@@ -775,7 +775,7 @@ static ssize_t attr_current_value_store(struct kobject *kobj, struct tunable_attr_01 *tunable_attr) {struct lwmi_om_priv *priv =dev_get_drvdata (tunable_attr->dev); -struct wmi_method_args_32 args; +struct wmi_method_args_32 args = {};struct capdata01 capdata;enum thermal_mode mode;u32 attribute_id;
@@ -838,7 +838,7 @@ static ssize_t attr_current_value_show(struct kobject *kobj, struct tunable_attr_01 *tunable_attr) {struct lwmi_om_priv *priv =dev_get_drvdata (tunable_attr->dev); -struct wmi_method_args_32 args; +struct wmi_method_args_32 args = {};enum thermal_mode mode;u32 attribute_id;int retval;