]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cifs: Fix missing put_xid in cifs_file_strict_mmap
authorMatthew Wilcox <mawilcox@microsoft.com>
Fri, 15 Dec 2017 20:48:32 +0000 (12:48 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:43 +0000 (08:15 -0600)
commitf44c5827fcd46bf885d639c59535e8db5d892650
tree946edbcb35557d4905ab700ffd3aeb3bc5d7b2dc
parent81e44a5fbfb8dfc1fa162f36dff862499fbea762
cifs: Fix missing put_xid in cifs_file_strict_mmap

BugLink: http://bugs.launchpad.net/bugs/1751064
commit f04a703c3d613845ae3141bfaf223489de8ab3eb upstream.

If cifs_zap_mapping() returned an error, we would return without putting
the xid that we got earlier.  Restructure cifs_file_strict_mmap() and
cifs_file_mmap() to be more similar to each other and have a single
point of return that always puts the xid.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/cifs/file.c