Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9e5f633 authored by Mahmoud Adam's avatar Mahmoud Adam Committed by Greg Kroah-Hartman
Browse files

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: 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>
parent 339d7d40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2571,7 +2571,7 @@ static int client_opens_release(struct inode *inode, struct file *file)

	/* XXX: alternatively, we could get/drop in seq start/stop */
	drop_client(clp);
	return 0;
	return seq_release(inode, file);
}

static const struct file_operations client_states_fops = {