aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-11-07 12:05:22 -0500
committerTony Luck <tony.luck@intel.com>2005-11-07 12:05:22 -0500
commit0ad3a96f8ad910ecf87a25ec69ed360b284dee2e (patch)
tree12d292fd58fc0f7a3eb56c89dfc23569f3ab6c00 /fs/jffs2
parentf79b348856fbaf77e4a0c5cb08a808e5879967a9 (diff)
parent5b2f7ffcb734d3046144dfbd5ac6d76254a9e522 (diff)
Auto-update from upstream
Diffstat (limited to 'fs/jffs2')
-rw-r--r--fs/jffs2/readinode.c8
-rw-r--r--fs/jffs2/wbuf.c3
2 files changed, 4 insertions, 7 deletions
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c
index 5b2a83599d..1a96903e3e 100644
--- a/fs/jffs2/readinode.c
+++ b/fs/jffs2/readinode.c
@@ -490,7 +490,7 @@ int jffs2_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *i
490 up(&f->sem); 490 up(&f->sem);
491 jffs2_do_clear_inode(c, f); 491 jffs2_do_clear_inode(c, f);
492 } 492 }
493 kfree (f); 493 kfree(f);
494 return ret; 494 return ret;
495} 495}
496 496
@@ -742,10 +742,8 @@ void jffs2_do_clear_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f)
742 742
743 /* For symlink inodes we us f->dents to store the target path name */ 743 /* For symlink inodes we us f->dents to store the target path name */
744 if (S_ISLNK(OFNI_EDONI_2SFFJ(f)->i_mode)) { 744 if (S_ISLNK(OFNI_EDONI_2SFFJ(f)->i_mode)) {
745 if (f->dents) { 745 kfree(f->dents);
746 kfree(f->dents); 746 f->dents = NULL;
747 f->dents = NULL;
748 }
749 } else { 747 } else {
750 fds = f->dents; 748 fds = f->dents;
751 749
diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
index 316133c626..7bc7f2d571 100644
--- a/fs/jffs2/wbuf.c
+++ b/fs/jffs2/wbuf.c
@@ -327,8 +327,7 @@ static void jffs2_wbuf_recover(struct jffs2_sb_info *c)
327 c->wbuf_ofs = ofs + towrite; 327 c->wbuf_ofs = ofs + towrite;
328 memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len); 328 memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len);
329 /* Don't muck about with c->wbuf_inodes. False positives are harmless. */ 329 /* Don't muck about with c->wbuf_inodes. False positives are harmless. */
330 if (buf) 330 kfree(buf);
331 kfree(buf);
332 } else { 331 } else {
333 /* OK, now we're left with the dregs in whichever buffer we're using */ 332 /* OK, now we're left with the dregs in whichever buffer we're using */
334 if (buf) { 333 if (buf) {