Skip to content

Commit 5460728

Browse files
committed
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: 1088750 ("EDAC: Add EDAC driver for DMC520") Signed-off-by: Borislav Petkov <[email protected]> Cc: <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 5297cfa commit 5460728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/dmc520_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ static void dmc520_init_csrow(struct mem_ctl_info *mci)
464464
dimm->grain = pvt->mem_width_in_bytes;
465465
dimm->dtype = dt;
466466
dimm->mtype = mt;
467-
dimm->edac_mode = EDAC_FLAG_SECDED;
467+
dimm->edac_mode = EDAC_SECDED;
468468
dimm->nr_pages = pages_per_rank / csi->nr_channels;
469469
}
470470
}

0 commit comments

Comments
 (0)