lkml.org 
[lkml]   [2002]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] d_delete in jffs causes oops (2.5.48)
Date
jffs_remove calls d_delete(dentry). vfs_unlink then tries to access dentry->d_inode->i_sem
and calls d_delete(dentry).

Suggested patch:

--- inode-v23.c 20 Nov 2002 11:57:45 -0000 1.4
+++ inode-v23.c 20 Nov 2002 19:45:07 -0000
@@ -1063,8 +1063,6 @@
inode->i_ctime = dir->i_ctime;
mark_inode_dirty(inode);

- d_delete(dentry); /* This also frees the inode */
-
result = 0;
jffs_remove_end:
return result;
Can the JFFS guys verify that this doesn't cause a memory leak?

/Mikael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.033 / U:0.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site