EDAC/dmc520: Assign the proper type to dimm->edac_mode
authorBorislav Petkov <bp@suse.de>
Thu, 16 Sep 2021 08:44:06 +0000 (10:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Sep 2021 08:11:08 +0000 (10:11 +0200)
commitcc71740ee4d4c469efbc2f6faf329c01d20f91c9
tree013ee689e0c0bb4ea6ea16b21038a5e02a489066
parent9afad85a43f5d77b9b7e9ebf5306d8e47dd87b5f
EDAC/dmc520: Assign the proper type to dimm->edac_mode

commit 54607282fae6148641a08d81a6e0953b541249c7 upstream.

dimm->edac_mode contains values of type enum edac_type - not the
corresponding capability flags. Fix that.

Fixes: 1088750d7839 ("EDAC: Add EDAC driver for DMC520")
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/20210916085258.7544-1-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/dmc520_edac.c