mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Edgar Toernig <froese@gmx.de>
To: Manu Abraham <manu@linuxtv.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: free free irq and Oops on cat /proc/interrupts
Date: Sun, 18 Sep 2005 03:26:33 +0200	[thread overview]
Message-ID: <20050918032633.15a9b1b6.froese@gmx.de> (raw)
In-Reply-To: <432BE7F7.90508@linuxtv.org>

Manu Abraham wrote:
>
> Can somebody give me a pointer as to what i am possibly doing wrong.
>
> i get a "free free IRQ" on free_irq().. 
>
>[and a kernel oops]

|	if (request_irq(pdev->irq, mantis_pci_irq, SA_SHIRQ | SA_INTERRUPT, 
|						DRIVER_NAME, mantis) < 0) {
|[...]
|	free_irq(pdev->irq, pdev);

The last arg of request_irq and free_irq has to match - it is the id
that distinguishes different users of the same irq.  As there never
was a request_irq with pdev you get that error on free_irq.

The module unload still takes place.  So trying to cat /proc/interrupts
later on will stumble over the still installed handler with the mantis
id - unfortunately, the driver (and especially DRIVER_NAME) is no longer
in memory ...

Ciao, ET.

      reply	other threads:[~2005-09-18  1:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-17  9:55 Manu Abraham
2005-09-18  1:26 ` Edgar Toernig [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=20050918032633.15a9b1b6.froese@gmx.de \
    --to=froese@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manu@linuxtv.org \
    /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

all inboxes | Powered by JetHome®