Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1404261 > unrolled thread

Re: [PATCH] edac:Fix kernel panic regression in edac_mc_reset_delay_period due to missing mode operation check

Started byBorislav Petkov <bp@alien8.de>
First post2016-05-20 10:50 +0200
Last post2016-05-20 10:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] edac:Fix kernel panic regression in  edac_mc_reset_delay_period due to missing mode operation check Borislav Petkov <bp@alien8.de> - 2016-05-20 10:50 +0200

#1404261 — Re: [PATCH] edac:Fix kernel panic regression in edac_mc_reset_delay_period due to missing mode operation check

FromBorislav Petkov <bp@alien8.de>
Date2016-05-20 10:50 +0200
SubjectRe: [PATCH] edac:Fix kernel panic regression in edac_mc_reset_delay_period due to missing mode operation check
Message-ID<rAOi6-3fo-13@gated-at.bofh.it>
On Thu, May 19, 2016 at 06:45:58PM -0400, Nicholas Krause wrote:
> This fixes a kernel panic regression in the function,
> edac_mc_reset_delay_period as show by this kernel panic
> trace:

...

>  drivers/edac/edac_mc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
> index 6aa256b0..c3ee3ad 100644
> --- a/drivers/edac/edac_mc.c
> +++ b/drivers/edac/edac_mc.c
> @@ -565,7 +565,8 @@ void edac_mc_reset_delay_period(unsigned long value)
>  	list_for_each(item, &mc_devices) {
>  		mci = list_entry(item, struct mem_ctl_info, link);
>  
> -		edac_mod_work(&mci->work, value);
> +		if (mci->op_state == OP_RUNNING_POLL)
> +			edac_mod_work(&mci->work, value);
>  	}
>  	mutex_unlock(&mem_ctls_mutex);
>  }
> -- 

Looks good to me. I'll apply it after the merge window is over.

Thanks.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web