public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Junjie Mao <junjie.mao@hotmail.com>
Cc: Doug Thompson <dougthompson@xmission.com>,
	Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
	linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] edac: remove dev_attr_sdram_scrub_rate on failure
Date: Tue, 3 Feb 2015 18:41:23 +0100	[thread overview]
Message-ID: <20150203174123.GI3463@pd.tnic> (raw)
In-Reply-To: <BLU436-SMTP89DDD763955ABD5C4ED920953D0@phx.gbl>

On Tue, Feb 03, 2015 at 09:54:41AM +0800, Junjie Mao wrote:

Commit message here please.

> Signed-off-by: Junjie Mao <junjie.mao@hotmail.com>
> ---
>  drivers/edac/edac_mc_sysfs.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
> index 8e48d32efe37..ab2963bdd0d5 100644
> --- a/drivers/edac/edac_mc_sysfs.c
> +++ b/drivers/edac/edac_mc_sysfs.c
> @@ -1068,6 +1068,8 @@ fail_unregister_dimm:
>  			continue;
>  		device_unregister(&dimm->dev);
>  	}
> +	if (mci->set_sdram_scrub_rate || mci->get_sdram_scrub_rate)
> +		device_remove_file(&mci->dev, &dev_attr_sdram_scrub_rate);
>  fail_unregister_dev:
>  	device_unregister(&mci->dev);
>  fail_unregister_bus:

Do I see it correctly that the destroy path
edac_remove_sysfs_mci_device() doesn't call device_remove_file() on that
sysfs node either?

Please add that code too.

-- 
Regards/Gruss,
    Boris.

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

      reply	other threads:[~2015-02-03 17:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03  1:54 [PATCH] edac: remove dev_attr_sdram_scrub_rate on failure Junjie Mao
2015-02-03 17:41 ` Borislav Petkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150203174123.GI3463@pd.tnic \
    --to=bp@alien8.de \
    --cc=dougthompson@xmission.com \
    --cc=junjie.mao@hotmail.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@osg.samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox