X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH] platform/x86: hp-wmi: Fix board_params typo for 8DD6 board
@ 2026-08-27 23:51 Arda Doğu Ari
  2026-08-29  7:39 ` Krishna Chomal
  0 siblings, 1 reply; 2+ messages in thread
From: Arda Doğu Ari @ 2026-08-27 23:51 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen
  Cc: Krishna Chomal, platform-driver-x86, Arda Doğu Ari, stable

When adding support for board 8DD6, &omen_v1_no_ec_thermal_params 
was passed as driver_data instead of &omen_v1_no_ec_board_params.

Because active_board_params expects a pointer to struct
hp_wmi_board_params, dereferencing active_board_params->thermal_profile
results in a type confusion bug and invalid memory access. Update the entry
to point to omen_v1_no_ec_board_params.

Fixes: a7320d6eb9c42 ("platform/x86: hp-wmi: Add support for OMEN MAX 16-ak0xxx (8DD6)")
Cc: stable@vger.kernel.org
Signed-off-by: Arda Doğu Ari <arfeliousheres@gmail.com>
---
 drivers/platform/x86/hp/hp-wmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index b2773fc1aca4..615b4cf6fc45 100644
--- a/drivers/platform/x86/hp/hp-wmi.c
+++ b/drivers/platform/x86/hp/hp-wmi.c
@@ -337,7 +337,7 @@ static const struct dmi_system_id hp_wmi_feature_boards[] __initconst = {
 	},
 	{
 		.matches = { DMI_MATCH(DMI_BOARD_NAME, "8DD6") },
-		.driver_data = (void *)&omen_v1_no_ec_thermal_params,
+		.driver_data = (void *)&omen_v1_no_ec_board_params,
 	},
 	{
 		.matches = { DMI_MATCH(DMI_BOARD_NAME, "8E35") },
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-29  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-27 23:51 [PATCH] platform/x86: hp-wmi: Fix board_params typo for 8DD6 board Arda Doğu Ari
2026-08-29  7:39 ` Krishna Chomal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox