Commit b49773be authored by J. R. Okajima's avatar J. R. Okajima
Browse files

aufs: bugfix, possible kmemleak



In aufs5.4, kmemleak reported several false positives in
fs/aufs/xino.c.  I don't know why, but it may be related to the
"delayed" kfree (by RCU).  So I simply replace it by direct kfree()
call.
Signed-off-by: default avatarJ. R. Okajima <hooanon05g@gmail.com>
(cherry picked from commit 03836b8128073f92b4e4a1cb54f91d0d7c290d1f)
parent e5e64fe5
......@@ -1344,7 +1344,8 @@ static void au_xino_release(struct kref *kref)
hlist_bl_lock(hbl);
hlist_bl_for_each_entry_safe(p, pos, n, hbl, node) {
hlist_bl_del(&p->node);
au_kfree_rcu(p);
/* kmemleak reported au_kfree_rcu() doesn't free it */
kfree(p);
}
hlist_bl_unlock(hbl);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment