Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27828
b: refs/heads/master
c: 3560160
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse committed May 21, 2006
1 parent b3c9b7d commit 6484006
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6171586a7ae5198988774e8480631e8d15f65dfe
refs/heads/master: 3560160aa26ebced1944aaa2e7e436d2a1b1bf70
9 changes: 7 additions & 2 deletions trunk/fs/jffs2/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,15 @@ static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblo

if (sumptr) {
err = jffs2_sum_scan_sumnode(c, jeb, sumptr, sumlen, &pseudo_random);
if (err)
return err;

if (buf_size && sumlen > buf_size)
kfree(sumptr);
/* If it returns with a real error, bail.
If it returns positive, that's a block classification
(i.e. BLK_STATE_xxx) so return that too.
If it returns zero, fall through to full scan. */
if (err)
return err;
}
}

Expand Down

0 comments on commit 6484006

Please sign in to comment.