mtd: inftl: fix fold chain block number

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 19 17:59:04 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=6ad08ddd9e8b85ad6c49eeb6c5d940ccdd119bde
Commit:     6ad08ddd9e8b85ad6c49eeb6c5d940ccdd119bde
Parent:     b4c8c8cf9ad6bac5a1d7fdae751ce38b8d3028ba
Author:     Mohanlal Jangir <mohanlaljangir at gmail.com>
AuthorDate: Thu Sep 3 22:56:17 2009 +0900
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 19 14:17:35 2009 -0700

    mtd: inftl: fix fold chain block number
    
    Signed-off-by: Mohan Lal Jangir <mohanlaljangir at gmail.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/inftlcore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/inftlcore.c b/drivers/mtd/inftlcore.c
old mode 100644
new mode 100755
index d8cf29c..8aca552
--- a/drivers/mtd/inftlcore.c
+++ b/drivers/mtd/inftlcore.c
@@ -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.



More information about the linux-mtd-cvs mailing list