Patch "hwmon: (corsair-psu) fix plain integer used as NULL pointer" 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

    hwmon: (corsair-psu) fix plain integer used as NULL pointer

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:
     hwmon-corsair-psu-fix-plain-integer-used-as-null-poi.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 f45e4afad7d96cd36e295dbddaf3fa69a858fcb4
Author: Wilken Gottwalt <wilken.gottwalt@xxxxxxxxxx>
Date:   Sat Nov 13 06:53:52 2021 +0000

    hwmon: (corsair-psu) fix plain integer used as NULL pointer
    
    [ Upstream commit 8383226583251858814d5521b542e7bf7dbadc4b ]
    
    sparse warnings: (new ones prefixed by >>)
    >> drivers/hwmon/corsair-psu.c:536:82: sparse: sparse: Using plain
       integer as NULL pointer
    
    Fixes: d115b51e0e56 ("hwmon: add Corsair PSU HID controller driver")
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Signed-off-by: Wilken Gottwalt <wilken.gottwalt@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/YY9hAL8MZEQYLYPf@monster.localdomain
    Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hwmon/corsair-psu.c b/drivers/hwmon/corsair-psu.c
index 731d5117f9f10..14389fd7afb89 100644
--- a/drivers/hwmon/corsair-psu.c
+++ b/drivers/hwmon/corsair-psu.c
@@ -729,7 +729,7 @@ static int corsairpsu_probe(struct hid_device *hdev, const struct hid_device_id
 	corsairpsu_check_cmd_support(priv);
 
 	priv->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsairpsu", priv,
-							  &corsairpsu_chip_info, 0);
+							  &corsairpsu_chip_info, NULL);
 
 	if (IS_ERR(priv->hwmon_dev)) {
 		ret = PTR_ERR(priv->hwmon_dev);



[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