LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
To: Corey Minyard <minyard@acm.org>
Cc: Grant Likely <grant.likely@secretlab.ca>,
	openipmi-developer@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, Peter Huewe <peterhuewe@gmx.de>,
	Randy Dunlap <randy.dunlap@oracle.com>
Subject: [PATCH] char/ipmi: fix cleanup_one_si section mismatch
Date: Tue, 15 Feb 2011 11:52:45 +0200	[thread overview]
Message-ID: <20110215095245.GB4350@swordfish.minsk.epam.com> (raw)
In-Reply-To: <4D59BAED.9060501@acm.org>


commit d2478521afc20227658a10a8c5c2bf1a2aa615b3
Author: Corey Minyard<minyard@acm.org>
Date:   Thu Feb 10 16:08:38 2011 -0600

     char/ipmi: fix OOPS caused by pnp_unregister_driver on unregistered driver


Introduced section mismatch by calling __exit cleanup_ipmi_si from __devinit 
init_ipmi_si. Remove __exit annotation from cleanup_ipmi_si.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Corey Minyard <cminyard@mvista.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 7855f9f..94cd2ce 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -3532,7 +3532,7 @@ static void cleanup_one_si(struct smi_info *to_clean)
 	kfree(to_clean);
 }
 
-static void __exit cleanup_ipmi_si(void)
+static void cleanup_ipmi_si(void)
 {
 	struct smi_info *e, *tmp_e;
 

  reply	other threads:[~2011-02-15  9:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-14 15:03 char/ipmi: " Sergey Senozhatsky
2011-02-14 23:29 ` Corey Minyard
2011-02-15  9:52   ` Sergey Senozhatsky [this message]
2011-03-15 16:37     ` [PATCH] char/ipmi: fix " Randy Dunlap

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=20110215095245.GB4350@swordfish.minsk.epam.com \
    --to=sergey.senozhatsky@gmail.com \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minyard@acm.org \
    --cc=openipmi-developer@lists.sourceforge.net \
    --cc=peterhuewe@gmx.de \
    --cc=randy.dunlap@oracle.com \
    --subject='Re: [PATCH] char/ipmi: fix cleanup_one_si section mismatch' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).