nfsd: fix file memleak on client_opens_release
authorMahmoud Adam <mngyadam@amazon.com>
Fri, 10 Nov 2023 18:21:04 +0000 (19:21 +0100)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 17 Nov 2023 20:12:39 +0000 (15:12 -0500)
commitbc1b5acb40201a0746d68a7d7cfc141899937f4f
tree03f7536b6d2bb60ff0a2ae474f46764cbe58532f
parent3fd2ca5be07f6a43211591a45b43df9e7b6eba00
nfsd: fix file memleak on client_opens_release

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>
fs/nfsd/nfs4state.c