mtd/fs/jffs2 erase.c,1.56,1.57

David Woodhouse dwmw2 at infradead.org
Tue Nov 4 09:46:16 EST 2003


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv15515

Modified Files:
	erase.c 
Log Message:
Fix double spin_unlock

Index: erase.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/erase.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- erase.c	3 Nov 2003 17:33:54 -0000	1.56
+++ erase.c	4 Nov 2003 14:46:13 -0000	1.57
@@ -120,7 +120,7 @@
 
 			if (!--count) {
 				D1(printk(KERN_DEBUG "Count reached. jffs2_erase_pending_blocks leaving\n"));
-				break;
+				goto done;
 			}
 
 		} else if (!list_empty(&c->erase_pending_list)) {
@@ -149,6 +149,7 @@
 	}
 
 	spin_unlock(&c->erase_completion_lock);
+ done:
 	D1(printk(KERN_DEBUG "jffs2_erase_pending_blocks completed\n"));
 
 	up(&c->erase_free_sem);




More information about the linux-mtd-cvs mailing list