Patch "APEI: GHES: correctly return NULL for ghes_get_devices()" has been added to the 6.4-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

    APEI: GHES: correctly return NULL for ghes_get_devices()

to the 6.4-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:
     apei-ghes-correctly-return-null-for-ghes_get_devices.patch
and it can be found in the queue-6.4 subdirectory.

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



commit 09ac6d61ba25a1f1515acb110bd4fdd7d36d65f7
Author: Li Yang <leoyang.li@xxxxxxx>
Date:   Fri May 19 15:12:49 2023 -0500

    APEI: GHES: correctly return NULL for ghes_get_devices()
    
    [ Upstream commit 9368aa1882ac7178adcd936cee5f0899dbf76dc4 ]
    
    Since 315bada690e0 ("EDAC: Check for GHES preference in the
    chipset-specific EDAC drivers"), vendor specific EDAC driver will not
    probe correctly when CONFIG_ACPI_APEI_GHES is enabled but no GHES device
    is present.  Make ghes_get_devices() return NULL when the GHES device
    list is empty to fix the problem.
    
    Fixes: 9057a3f7ac36 ("EDAC/ghes: Prepare to make ghes_edac a proper module")
    Signed-off-by: Li Yang <leoyang.li@xxxxxxx>
    Reviewed-by: Tony Luck <tony.luck@xxxxxxxxx>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index 34ad071a64e96..4382fe13ee3e4 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -1544,6 +1544,8 @@ struct list_head *ghes_get_devices(void)
 
 			pr_warn_once("Force-loading ghes_edac on an unsupported platform. You're on your own!\n");
 		}
+	} else if (list_empty(&ghes_devs)) {
+		return NULL;
 	}
 
 	return &ghes_devs;



[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