Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d32b29a authored by majianpeng's avatar majianpeng Committed by J. Bruce Fields
Browse files

nfsd: Fix memleak



When free nfs-client, it must free the ->cl_stateids.

Cc: stable@kernel.org
Signed-off-by: default avatarJianpeng Ma <majianpeng@gmail.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent b4e7f2c9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1060,6 +1060,8 @@ free_client(struct nfs4_client *clp)
	}
	free_svc_cred(&clp->cl_cred);
	kfree(clp->cl_name.data);
	idr_remove_all(&clp->cl_stateids);
	idr_destroy(&clp->cl_stateids);
	kfree(clp);
}