public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Vipin Malik <vmalik@danielind.com>
To: mtd <mtd@infradead.org>
Subject: cfi_probe module usage count when insmod physmap.o fails
Date: Tue, 13 Feb 2001 11:57:33 -0600	[thread overview]
Message-ID: <3A89758C.74FD4C74@danielind.com> (raw)

When insmod physmap.o fails, it does not decrement the usage count of
cfi_probe.o

This results in an ever increasing usage count for each "try" of insmod
physmap.o

The problem that I encountered is that trying to unload cfi_probe module
to add some debug printk's was not possible.

I solved the problem with an extra line in physmap.c right before it
exits because do_cfi_probe() failed that decrements
the cfi_probe module usage count as thus:

 inter_module_put("cfi_probe");

This works. Anyone see any problems with it? If not can we change
physmap.c with this change?

Thanks

Vipin



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

             reply	other threads:[~2001-02-13 17:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-13 17:57 Vipin Malik [this message]
2001-02-13 17:38 ` cfi_probe module usage count when insmod physmap.o fails David Woodhouse

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=3A89758C.74FD4C74@danielind.com \
    --to=vmalik@danielind.com \
    --cc=mtd@infradead.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