]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ceph: fix a memory leak on cap_auths in MDS client
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>
Mon, 19 Aug 2024 09:52:17 +0000 (10:52 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 24 Sep 2024 20:51:33 +0000 (22:51 +0200)
commitd97079e97eab20e08afc507f2bed4501e2824717
tree71c3778d10223c9c0a3cb2adda72cd25bcfa20b3
parentadc52461767f675264f2876d61e7220c113023e8
ceph: fix a memory leak on cap_auths in MDS client

The cap_auths that are allocated during an MDS session opening are never
released, causing a memory leak detected by kmemleak.  Fix this by freeing
the memory allocated when shutting down the MDS client.

Fixes: 1d17de9534cb ("ceph: save cap_auths in MDS client when session is opened")
Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c