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)
committerSteve French <smfrench@gmail.com>
Thu, 25 Jan 2018 01:49:06 +0000 (19:49 -0600)
commitf04a703c3d613845ae3141bfaf223489de8ab3eb
tree12d5c5ec922757e37040ab164b5dd50d2b6f400f
parentd8ec913b178156661c2b941f94ec22487225d3dc
cifs: Fix missing put_xid in cifs_file_strict_mmap

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>
CC: Stable <stable@vger.kernel.org>
fs/cifs/file.c