mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 16:29:05 +00:00
nfsd: Fix memleak
When free nfs-client, it must free the ->cl_stateids. Cc: stable@kernel.org Signed-off-by: Jianpeng Ma <majianpeng@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
b4e7f2c945
commit
2d32b29a1c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user