Patch "hwmon: (hp-wmi-sensors) Check if WMI event data exists" has been added to the 6.6-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

    hwmon: (hp-wmi-sensors) Check if WMI event data exists

to the 6.6-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:
     hwmon-hp-wmi-sensors-check-if-wmi-event-data-exists.patch
and it can be found in the queue-6.6 subdirectory.

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



commit 6b1e103370e25c6aa1b4642749f953a8eacc1c2c
Author: Armin Wolf <W_Armin@xxxxxx>
Date:   Sun Sep 1 05:10:51 2024 +0200

    hwmon: (hp-wmi-sensors) Check if WMI event data exists
    
    [ Upstream commit a54da9df75cd1b4b5028f6c60f9a211532680585 ]
    
    The BIOS can choose to return no event data in response to a
    WMI event, so the ACPI object passed to the WMI notify handler
    can be NULL.
    
    Check for such a situation and ignore the event in such a case.
    
    Fixes: 23902f98f8d4 ("hwmon: add HP WMI Sensors driver")
    Signed-off-by: Armin Wolf <W_Armin@xxxxxx>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
    Message-ID: <20240901031055.3030-2-W_Armin@xxxxxx>
    Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hwmon/hp-wmi-sensors.c b/drivers/hwmon/hp-wmi-sensors.c
index b5325d0e72b9..dfa1d6926dea 100644
--- a/drivers/hwmon/hp-wmi-sensors.c
+++ b/drivers/hwmon/hp-wmi-sensors.c
@@ -1637,6 +1637,8 @@ static void hp_wmi_notify(u32 value, void *context)
 		goto out_unlock;
 
 	wobj = out.pointer;
+	if (!wobj)
+		goto out_unlock;
 
 	err = populate_event_from_wobj(dev, &event, wobj);
 	if (err) {




[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