cfi_probe module usage count when insmod physmap.o fails

Vipin Malik vmalik at
Tue Feb 13 12:57:33 EST 2001

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

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

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:


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



To unsubscribe, send "unsubscribe mtd" to majordomo at

More information about the linux-mtd mailing list