Patch "platform/x86: wmi: Skip blocks with zero instances" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    platform/x86: wmi: Skip blocks with zero instances

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     platform-x86-wmi-skip-blocks-with-zero-instances.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 87c2b93c70757e5cb6abb171bebf1808ae270bf1
Author: Armin Wolf <W_Armin@xxxxxx>
Date:   Wed Nov 29 19:16:54 2023 +0100

    platform/x86: wmi: Skip blocks with zero instances
    
    [ Upstream commit cbf54f37600e874d82886aa3b2f471778cae01ce ]
    
    Some machines like the HP Omen 17 ck2000nf contain WMI blocks
    with zero instances, so any WMI driver which tries to handle the
    associated WMI device will fail.
    Skip such WMI blocks to avoid confusing any WMI drivers.
    
    Reported-by: Alexis Belmonte <alexbelm48@xxxxxxxxx>
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218188
    Fixes: bff431e49ff5 ("ACPI: WMI: Add ACPI-WMI mapping driver")
    Tested-by: Alexis Belmonte <alexbelm48@xxxxxxxxx>
    Signed-off-by: Armin Wolf <W_Armin@xxxxxx>
    Link: https://lore.kernel.org/r/20231129181654.5800-1-W_Armin@xxxxxx
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index ce3380f09a472..7bb849aaa99e1 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -1213,6 +1213,11 @@ static int parse_wdg(struct device *wmi_bus_dev, struct acpi_device *device)
 		if (debug_dump_wdg)
 			wmi_dump_wdg(&gblock[i]);
 
+		if (!gblock[i].instance_count) {
+			dev_info(wmi_bus_dev, FW_INFO "%pUL has zero instances\n", &gblock[i].guid);
+			continue;
+		}
+
 		if (guid_already_parsed_for_legacy(device, &gblock[i].guid))
 			continue;
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux