]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
mtd: bcm47xxsflash: write number of written bytes
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 24 Jan 2013 16:39:54 +0000 (17:39 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 4 Feb 2013 08:31:20 +0000 (10:31 +0200)
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>
drivers/mtd/devices/bcm47xxsflash.c

index 8fe1a097161b27aa92646056bd8abe291001ee44..61a45cbde37787751975bf00dac4dc0a28d5595a 100644 (file)
@@ -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;
 }