mtd/drivers/mtd mtdblock.c,1.55,1.56
spse at infradead.org
spse at infradead.org
Tue Jul 30 14:20:01 EDT 2002
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv23245
Modified Files:
mtdblock.c
Log Message:
If the mtd is already open()'d then put the device back to stop
the module count being incremented too many times.
Index: mtdblock.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdblock.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- mtdblock.c 30 Jul 2002 15:13:57 -0000 1.55
+++ mtdblock.c 30 Jul 2002 18:19:58 -0000 1.56
@@ -299,6 +299,7 @@
if (mtdblks[dev]) {
mtdblks[dev]->count++;
spin_unlock(&mtdblks_lock);
+ put_mtd_device(mtd);
return 0;
}
More information about the linux-mtd-cvs
mailing list