nfsd: fix file memleak on client_opens_release
authorMahmoud Adam <mngyadam@amazon.com>
Fri, 10 Nov 2023 18:21:04 +0000 (19:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:07:19 +0000 (17:07 +0000)
commit1bb61fb7908c4bfd597b75c18569315facecdce5
tree6e33b1c273f381b59c0243d116581c3ad0a65738
parenta5d4be493afc09d03c4e5bf906f686f79bfca4d6
nfsd: fix file memleak on client_opens_release

commit bc1b5acb40201a0746d68a7d7cfc141899937f4f upstream.

seq_release should be called to free the allocated seq_file

Cc: stable@vger.kernel.org # v5.3+
Signed-off-by: Mahmoud Adam <mngyadam@amazon.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Fixes: 78599c42ae3c ("nfsd4: add file to display list of client's opens")
Reviewed-by: NeilBrown <neilb@suse.de>
Tested-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4state.c