From: Borislav Petkov <bp@alien8.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org,
Yazen Ghannam <Yazen.Ghannam@amd.com>
Subject: EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[]
Date: Fri, 17 Aug 2018 15:14:43 +0200 [thread overview]
Message-ID: <20180817131443.GB13594@nazgul.tnic> (raw)
On Fri, Aug 10, 2018 at 04:14:26PM +0200, Takashi Iwai wrote:
> 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: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
> 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",
> };
> EXPORT_SYMBOL_GPL(edac_mem_types);
> --
Applied, thanks.
next reply other threads:[~2018-08-17 13:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-17 13:14 Borislav Petkov [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-08-10 14:14 EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[] Takashi Iwai
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180817131443.GB13594@nazgul.tnic \
--to=bp@alien8.de \
--cc=Yazen.Ghannam@amd.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).