]> Git Repo - linux.git/commitdiff
EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[]
authorTakashi Iwai <[email protected]>
Fri, 10 Aug 2018 14:14:26 +0000 (16:14 +0200)
committerBorislav Petkov <[email protected]>
Fri, 17 Aug 2018 13:13:34 +0000 (15:13 +0200)
The edac_mem_types[] array misses a MEM_LRDDR4 entry, which leads to
NULL pointer dereference when accessed via sysfs or such.

Signed-off-by: Takashi Iwai <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Yazen Ghannam <[email protected]>
Cc: linux-edac <[email protected]>
Cc: <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 1e8096bb2031 ("EDAC: Add LRDDR4 DRAM type")
Signed-off-by: Borislav Petkov <[email protected]>
drivers/edac/edac_mc.c

index 3bb82e511eca9c799c3435841cb7986f475bfc71..7d3edd7139328b5466dfe2041d24e353e166ea7a 100644 (file)
@@ -215,6 +215,7 @@ const char * const edac_mem_types[] = {
        [MEM_LRDDR3]    = "Load-Reduced-DDR3-RAM",
        [MEM_DDR4]      = "Unbuffered-DDR4",
        [MEM_RDDR4]     = "Registered-DDR4",
+       [MEM_LRDDR4]    = "Load-Reduced-DDR4-RAM",
        [MEM_NVDIMM]    = "Non-volatile-RAM",
 };
 EXPORT_SYMBOL_GPL(edac_mem_types);
This page took 0.056163 seconds and 4 git commands to generate.