mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
Merge tag 'edac_urgent_for_v6.18_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
Pull EDAC fix from Borislav Petkov: - Fix an off-by-one error in versalnet_edac * tag 'edac_urgent_for_v6.18_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras: EDAC/versalnet: Fix off by one in handle_error()
This commit is contained in:
@@ -433,7 +433,7 @@ static void handle_error(struct mc_priv *priv, struct ecc_status *stat,
|
||||
phys_addr_t pfn;
|
||||
int err;
|
||||
|
||||
if (WARN_ON_ONCE(ctl_num > NUM_CONTROLLERS))
|
||||
if (WARN_ON_ONCE(ctl_num >= NUM_CONTROLLERS))
|
||||
return;
|
||||
|
||||
mci = priv->mci[ctl_num];
|
||||
|
||||
Reference in New Issue
Block a user