Message ID | 56D0B2AE.7020104@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/fs/kernfs/dir.c b/fs/kernfs/dir.c index a4b1db1..89c0c16 100644 --- a/fs/kernfs/dir.c +++ b/fs/kernfs/dir.c @@ -456,6 +456,12 @@ void kernfs_put(struct kernfs_node *kn) if (kernfs_type(kn) == KERNFS_LINK) kernfs_put(kn->symlink.target_kn); + /* + * Tracepoints may be reading the old name. They are protected + * by rcu_read_lock_sched(). + */ + synchronize_sched(); + kfree_const(kn->name); if (kn->iattr) {