Skip to content

Commit b49773b

Browse files
committed
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: J. R. Okajima <[email protected]> (cherry picked from commit 03836b8128073f92b4e4a1cb54f91d0d7c290d1f)
1 parent e5e64fe commit b49773b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/aufs/xino.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,8 @@ static void au_xino_release(struct kref *kref)
13441344
hlist_bl_lock(hbl);
13451345
hlist_bl_for_each_entry_safe(p, pos, n, hbl, node) {
13461346
hlist_bl_del(&p->node);
1347-
au_kfree_rcu(p);
1347+
/* kmemleak reported au_kfree_rcu() doesn't free it */
1348+
kfree(p);
13481349
}
13491350
hlist_bl_unlock(hbl);
13501351
}

0 commit comments

Comments
 (0)