Commit c0f80fc4 authored by Mahmoud Adam's avatar Mahmoud Adam Committed by Zheng Zengkai
Browse files

nfsd: fix file memleak on client_opens_release

stable inclusion
from stable-v6.6.3
commit 47a9c946d850671c2492bb0cc20f151a3648a6de
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8LBQP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=47a9c946d850671c2492bb0cc20f151a3648a6de



--------------------------------

commit bc1b5acb40201a0746d68a7d7cfc141899937f4f upstream.

seq_release should be called to free the allocated seq_file

Cc: stable@vger.kernel.org # v5.3+
Signed-off-by: default avatarMahmoud Adam <mngyadam@amazon.com>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Fixes: 78599c42 ("nfsd4: add file to display list of client's opens")
Reviewed-by: default avatarNeilBrown <neilb@suse.de>
Tested-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 363cb868
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment