Commits

Nick Kralevich  committed 6dff53c

goldfish_nand.c: remove length restrictions

Remove limitations on the size of a read / write request.
AFAIK, there's no consequence to allowing the upper layers
to specify different read / write sizes.

This is needed to support running ext4 on goldfish.

Bug: https://code.google.com/p/android/issues/detail?id=38561
Change-Id: I68a03c67a485e023d4a0fa60100a7b36927ffac0
Signed-off-by: Nick Kralevich <nnk@google.com>

  • Participants
  • Parent commits d8b3ade
  • Branches android-goldfish-3.4, seandroid-goldfish-3.4

Comments (0)

Files changed (1)

File drivers/mtd/devices/goldfish_nand.c

 
 	if(from + len > mtd->size)
 		goto invalid_arg;
-	if(len != mtd->writesize)
-		goto invalid_arg;
 
 	rem = do_div(from, mtd->writesize);
 	if(rem)
 
 	if(to + len > mtd->size)
 		goto invalid_arg;
-	if(len != mtd->writesize)
-		goto invalid_arg;
 
 	rem = do_div(to, mtd->writesize);
 	if(rem)