Prarit Bhargava <prarit@xxxxxxxxxx> writes: > I somehow managed to trim off the cc list ... oops. Sorry about that. > > P. > > ----8<---- > > nfit_init() calls nfit_mce_register() on module load. When the module > load fails the nfit mce decoder is not unregistered. The module's > memory is freed leaving the decoder chain referencing junk. This will > cause panics as future registrations will reference the free'd memory. > > Unregister the nfit mce decoder on module init failure. > > [v2]: register and then unregister mce handler to avoid losing mce events > > Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx> Looks good to me. Acked-by: Jeff Moyer <jmoyer@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html