RE: BUG: key ffff880c1148c478 not in .data! (V3.10.0)
Date
Thu, 18 Jul 2013 16:51:48 +0000
+ BUG_ON(mci->mc_idx >= EDAC_MAX_MCS);
Do we have to "BUG_ON()" here? Couldn't we be gentler with something like:
if (mci->mc_idx >= EDAC_MAX_MCS) { printk_once(KERN_WARNING "Too many memory controllers\n"); return; /* probably need to make sure caller copes with this ... so more stuff there */ }