mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
nfsd: fix file memleak on client_opens_release
commitbc1b5acb40upstream. 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:78599c42ae("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>
This commit is contained in:
parent
5798525216
commit
47a9c946d8
|
|
@ -2797,7 +2797,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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user