[PATCH 08/10] qi-fix-return-ext2-dev-last-sector.patch

Andy Green andy at openmoko.com
Wed Oct 22 08:43:24 CEST 2008


There was a bug about dealing with last ext2 sector of file
because we failed to return the number of sectors pulled

Signed-off-by: Andy Green <andy at openmoko.com>
---

 src/cpu/s3c6410/hs_mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cpu/s3c6410/hs_mmc.c b/src/cpu/s3c6410/hs_mmc.c
index c87a1f7..485d2a7 100644
--- a/src/cpu/s3c6410/hs_mmc.c
+++ b/src/cpu/s3c6410/hs_mmc.c
@@ -646,5 +646,5 @@ unsigned long s3c6410_mmc_bread(int dev_num, unsigned long start_blk, unsigned l
 
 	HS_DMA_END = 0;
 
-	return 0;
+	return blknum;
 }




More information about the openmoko-kernel mailing list