From: Tony Camuso <tcamuso@redhat.com>
To: minyard@acm.org
Cc: Corey Minyard <tcminyard@gmail.com>,
devicetree-discuss@lists.ozlabs.org,
linux-kernel@vger.kernel.org, rob.herring@calxeda.com,
openipmi-developer@lists.sourceforge.net,
grant.likely@secretlab.ca, k-tanaka@ce.jp.nec.com,
myamazak@redhat.com
Subject: Re: [PATCH] ipmi: replace call to try_smi_init() with call to add_smi()
Date: Wed, 09 Jan 2013 08:39:55 -0500 [thread overview]
Message-ID: <50ED732B.5070608@redhat.com> (raw)
In-Reply-To: <50EC7DAF.8030606@redhat.com>
Rescinding.
This hunk is already upstream.
On 01/08/2013 03:12 PM, Tony Camuso wrote:
> Upstream commit 9e368fa0 added function ipmi_pnp_probe(), which
> calls try_smi_init() directly.
>
> try_smi_init() allocates resources for IPMI driver. However
> try_smi_init() can be called again, and the allocated resources
> can be unexpectedly released when the same IPMI resource
> information is found on both ACPI namespace and SMBIOS table.
> ipmi_pnp_probe() should call add_smi() instead of try_smi_init()
>
> For reference, see upstream commit ...
> 2407d77a1a013b88ee3b817f2b934e420e5376f5
>
> Signed-off-by: Tony Camuso <tcamuso@redhat.com>
>
> ---
> drivers/char/ipmi/ipmi_si_intf.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
> index afb89be..20d13c6 100644
> --- a/drivers/char/ipmi/ipmi_si_intf.c
> +++ b/drivers/char/ipmi/ipmi_si_intf.c
> @@ -2223,7 +2223,7 @@ static int __devinit ipmi_pnp_probe(struct pnp_dev *dev,
> info->dev = &dev->dev;
> pnp_set_drvdata(dev, info);
>
> - return try_smi_init(info);
> + return add_smi(info);
>
> err_free:
> kfree(info);
next prev parent reply other threads:[~2013-01-09 13:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-13 18:40 [PATCH] ipmi: add new kernel options to prevent automatic ipmi init Tony Camuso
2012-12-13 19:51 ` Corey Minyard
2012-12-14 14:23 ` Tony Camuso
2013-01-08 20:12 ` [PATCH] ipmi: replace call to try_smi_init() with call to add_smi() Tony Camuso
2013-01-09 13:39 ` Tony Camuso [this message]
[not found] ` <50CA38CE.2040005@redhat.com>
[not found] ` <AC1B83CE65082B4DBDDB681ED2F6B2EF023202A7@EXHQ.corp.stratus.com>
2012-12-14 16:25 ` [PATCH] ipmi: add new kernel options to prevent automatic ipmi init Evans, Robert
2012-12-14 17:02 ` Corey Minyard
2012-12-17 21:14 ` Evans, Robert
2012-12-21 21:38 ` Evans, Robert
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=50ED732B.5070608@redhat.com \
--to=tcamuso@redhat.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=k-tanaka@ce.jp.nec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=minyard@acm.org \
--cc=myamazak@redhat.com \
--cc=openipmi-developer@lists.sourceforge.net \
--cc=rob.herring@calxeda.com \
--cc=tcminyard@gmail.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