EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[]
commitb748f2de4b2f578599f46c6000683a8da755bf68
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 Aug 2018 14:14:26 +0000 (10 16:14 +0200)
committerBorislav Petkov <bp@suse.de>
Fri, 17 Aug 2018 13:13:34 +0000 (17 15:13 +0200)
treead560145f3a9e4b3fa0505134a9900412fe92f03
parent190bd6e98afc512fb16d4a471acd488e36141637
EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[]

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 <tiwai@suse.de>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: <stable@vger.kernel.org>
Link: http://lkml.kernel.org/r/20180810141426.8918-1-tiwai@suse.de
Fixes: 1e8096bb2031 ("EDAC: Add LRDDR4 DRAM type")
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_mc.c