Browse Source

mtd: bcm47xxsflash: write number of written bytes

The callback assumes the number of read bytes is written to retlen.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Hauke Mehrtens 12 years ago
parent
commit
60aca067b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/mtd/devices/bcm47xxsflash.c

+ 1 - 0
drivers/mtd/devices/bcm47xxsflash.c

@@ -23,6 +23,7 @@ static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len,
 
 	memcpy_fromio(buf, (void __iomem *)KSEG0ADDR(b47s->window + from),
 		      len);
+	*retlen = len;
 
 	return len;
 }