All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lost path_put in perf_fill_ns_link_info
@ 2017-11-06  6:22 Vasily Averin
  2017-11-06  6:34 ` Vasily Averin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vasily Averin @ 2017-11-06  6:22 UTC (permalink / raw)
  To: linux-kernel, Hari Bathini
  Cc: Namhyung Kim, Jiri Olsa, Alexander Shishkin,
	Arnaldo Carvalho de Melo, Ingo Molnar, Peter Zijlstra

Fixes: commit e422267322cd ("perf: Add PERF_RECORD_NAMESPACES to include namespaces related info")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 kernel/events/core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/events/core.c b/kernel/events/core.c
index 10cdb9c..ab5ac84 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -6756,6 +6756,7 @@ static void perf_fill_ns_link_info(struct perf_ns_link_info *ns_link_info,
 		ns_inode = ns_path.dentry->d_inode;
 		ns_link_info->dev = new_encode_dev(ns_inode->i_sb->s_dev);
 		ns_link_info->ino = ns_inode->i_ino;
+		path_put(&ns_path);
 	}
 }
 
-- 
2.7.4

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

end of thread, other threads:[~2017-11-15  5:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06  6:22 [PATCH] lost path_put in perf_fill_ns_link_info Vasily Averin
2017-11-06  6:34 ` Vasily Averin
2017-11-07 19:03 ` Andrei Vagin
2017-11-07 19:51   ` Andrei Vagin
     [not found] ` <20171108120915.n7i46j2yly6fb7bj@ukko.fi.intel.com>
2017-11-08 13:04   ` [PATCH] " Vasily Averin
2017-11-15  5:48     ` Vasily Averin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.