linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] vfs: cleanup path_to_nameidata()
@ 2010-01-11 18:33 OGAWA Hirofumi
  2010-01-11 18:35 ` [PATCH 2/2] vfs: Fix refcnt leak with __do_follow_link() in do_filp_open() OGAWA Hirofumi
  0 siblings, 1 reply; 5+ messages in thread
From: OGAWA Hirofumi @ 2010-01-11 18:33 UTC (permalink / raw)
  To: Al Viro; +Cc: linux-kernel, linux-fsdevel


Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

 fs/namei.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff -puN fs/namei.c~namei-path_to_nameidata-cleanup fs/namei.c
--- linux-2.6/fs/namei.c~namei-path_to_nameidata-cleanup	2010-01-10 21:15:42.000000000 +0900
+++ linux-2.6-hirofumi/fs/namei.c	2010-01-12 00:15:04.000000000 +0900
@@ -541,9 +541,10 @@ static void path_put_conditional(struct 
 static inline void path_to_nameidata(struct path *path, struct nameidata *nd)
 {
 	dput(nd->path.dentry);
-	if (nd->path.mnt != path->mnt)
+	if (nd->path.mnt != path->mnt) {
 		mntput(nd->path.mnt);
-	nd->path.mnt = path->mnt;
+		nd->path.mnt = path->mnt;
+	}
 	nd->path.dentry = path->dentry;
 }
 
_

-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-14  3:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 18:33 [PATCH 1/2] vfs: cleanup path_to_nameidata() OGAWA Hirofumi
2010-01-11 18:35 ` [PATCH 2/2] vfs: Fix refcnt leak with __do_follow_link() in do_filp_open() OGAWA Hirofumi
2010-01-13 19:51   ` Al Viro
2010-01-13 20:07     ` Al Viro
2010-01-14  3:32       ` OGAWA Hirofumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).