mtd: inftl: fix fold chain block number
authorMohanlal Jangir <mohanlaljangir@gmail.com>
Thu, 3 Sep 2009 13:56:17 +0000 (22:56 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 19 Sep 2009 21:17:35 +0000 (14:17 -0700)
Signed-off-by: Mohan Lal Jangir <mohanlaljangir@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/inftlcore.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d8cf29c..8aca552
@@ -550,7 +550,7 @@ hitused:
                         * waiting to be picked up. We're going to have to fold
                         * a chain to make room.
                         */
-                       thisEUN = INFTL_makefreeblock(inftl, BLOCK_NIL);
+                       thisEUN = INFTL_makefreeblock(inftl, block);
 
                        /*
                         * Hopefully we free something, lets try again.