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)
committerBorislav Petkov <bp@suse.de>
Thu, 16 Sep 2021 09:00:12 +0000 (11:00 +0200)
commit54607282fae6148641a08d81a6e0953b541249c7
tree932f44760a0b45e9f74281514d47dc7fac91afb2
parent5297cfa6bdf93e3889f78f9b482e2a595a376083
EDAC/dmc520: Assign the proper type to dimm->edac_mode

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
drivers/edac/dmc520_edac.c