public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* cfi_probe module usage count when insmod physmap.o fails
@ 2001-02-13 17:57 Vipin Malik
  2001-02-13 17:38 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Vipin Malik @ 2001-02-13 17:57 UTC (permalink / raw)
  To: mtd

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-13 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-13 17:57 cfi_probe module usage count when insmod physmap.o fails Vipin Malik
2001-02-13 17:38 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox