diff options
author | Andy Lowe <alowe@mvista.com> | 2007-01-13 02:05:24 +0300 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-09-23 21:41:17 +0400 |
commit | 59d8235be2ab38ddaffbe9137385095a5e8b0a77 (patch) | |
tree | aa944a21c7ccdd1031a1ad337e7167ab76f522e8 /fs/jffs2/erase.c | |
parent | 097f2576eb7dbc8cd5f610847f229f4fea305b80 (diff) | |
download | linux-59d8235be2ab38ddaffbe9137385095a5e8b0a77.tar.xz |
[JFFS2] Fix unpoint length
Fix a couple of instances in JFFS2 where the unpoint() routine is
being called with the wrong length in cases where the point() routine
truncated a request.
Signed-off-by: Andy Lowe <alowe@mvista.com>
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/erase.c')
-rw-r--r-- | fs/jffs2/erase.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/erase.c b/fs/jffs2/erase.c index addd3fc0e877..a1db9180633f 100644 --- a/fs/jffs2/erase.c +++ b/fs/jffs2/erase.c @@ -340,7 +340,7 @@ static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_erasebl if (retlen < c->sector_size) { /* Don't muck about if it won't let us point to the whole erase sector */ D1(printk(KERN_DEBUG "MTD point returned len too short: 0x%zx\n", retlen)); - c->mtd->unpoint(c->mtd, ebuf, jeb->offset, c->sector_size); + c->mtd->unpoint(c->mtd, ebuf, jeb->offset, retlen); goto do_flash_read; } wordebuf = ebuf-sizeof(*wordebuf); |