Skip to content

Commit bc1b5ac

Browse files
mngyadamchucklever
authored andcommitted
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: 78599c4 ("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>
1 parent 3fd2ca5 commit bc1b5ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfs4state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2804,7 +2804,7 @@ static int client_opens_release(struct inode *inode, struct file *file)
28042804

28052805
/* XXX: alternatively, we could get/drop in seq start/stop */
28062806
drop_client(clp);
2807-
return 0;
2807+
return seq_release(inode, file);
28082808
}
28092809

28102810
static const struct file_operations client_states_fops = {

0 commit comments

Comments
 (0)