Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30936
b: refs/heads/master
c: 8a13695
h: refs/heads/master
v: v3
  • Loading branch information
KaiGai Kohei authored and David Woodhouse committed Jun 27, 2006
1 parent f746319 commit 59ecc20
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 228 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: a1ae76e96a18edf4b8a4d4e102762060c26d1c6a
refs/heads/master: 8a13695cbe4e8311b363f9bd25162904b984ca74
6 changes: 2 additions & 4 deletions trunk/fs/jffs2/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,8 @@ static int jffs2_scan_xattr_node(struct jffs2_sb_info *c, struct jffs2_erasebloc
xid = je32_to_cpu(rx->xid);
version = je32_to_cpu(rx->version);

totlen = sizeof(struct jffs2_raw_xattr);
if (version != XDATUM_DELETE_MARKER)
totlen += rx->name_len + 1 + je16_to_cpu(rx->value_len);
totlen = PAD(totlen);
totlen = PAD(sizeof(struct jffs2_raw_xattr)
+ rx->name_len + 1 + je16_to_cpu(rx->value_len));
if (totlen != je32_to_cpu(rx->totlen)) {
JFFS2_WARNING("node length mismatch at %#08x, read=%u, calc=%u\n",
ofs, je32_to_cpu(rx->totlen), totlen);
Expand Down
Loading

0 comments on commit 59ecc20

Please sign in to comment.