Linux-EDAC Archive on
 help / color / Atom feed
From: Takashi Iwai <>
To: Borislav Petkov <>
Cc: Mauro Carvalho Chehab <>,,
Subject: EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[]
Date: Fri, 10 Aug 2018 16:14:26 +0200
Message-ID: <> (raw)

The edac_mem_types[] array misses MEM_LRDDR4 entry, and it leads to
NULL dereference when accessed via sysfs or such.

Fixes: 1e8096bb2031 ("EDAC: Add LRDDR4 DRAM type")
Cc: <>
Signed-off-by: Takashi Iwai <>
 drivers/edac/edac_mc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
index 3bb82e511eca..7d3edd713932 100644
--- a/drivers/edac/edac_mc.c
+++ b/drivers/edac/edac_mc.c
@@ -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",

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-10 14:14 Takashi Iwai [this message]
2018-08-17 13:14 Borislav Petkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-EDAC Archive on

Archives are clonable:
	git clone --mirror linux-edac/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-edac linux-edac/ \
	public-inbox-index linux-edac

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone