kernel-fxtec-pro1x/fs/cifs
Al Viro a8ab0b7097 cifs_atomic_open(): fix double-put on late allocation failure
commit d9a9f4849fe0c9d560851ab22a85a666cddfdd24 upstream.

several iterations of ->atomic_open() calling conventions ago, we
used to need fput() if ->atomic_open() failed at some point after
successful finish_open().  Now (since 2016) it's not needed -
struct file carries enough state to make fput() work regardless
of the point in struct file lifecycle and discarding it on
failure exits in open() got unified.  Unfortunately, I'd missed
the fact that we had an instance of ->atomic_open() (cifs one)
that used to need that fput(), as well as the stale comment in
finish_open() demanding such late failure handling.  Trivially
fixed...

Fixes: fe9ec8291f "do_last(): take fput() on error after opening to out:"
Cc: stable@kernel.org # v4.7+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-18 07:14:21 +01:00
..
asn1.c
cache.c
cifs_debug.c cifs: Don't display RDMA transport on reconnect 2019-12-21 10:57:33 +01:00
cifs_debug.h
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c cifs: Fix mode output in debugging statements 2020-03-05 16:42:15 +01:00
cifsacl.h
cifsencrypt.c
cifsfs.c
cifsfs.h
cifsglob.h cifs: Fix cifsInodeInfo lock_sem deadlock when reconnect occurs 2019-11-10 11:27:34 +01:00
cifspdu.h
cifsproto.h cifs: Fix cifsInodeInfo lock_sem deadlock when reconnect occurs 2019-11-10 11:27:34 +01:00
cifssmb.c CIFS: Respect SMB2 hdr preamble size in read responses 2019-11-06 13:05:35 +01:00
connect.c cifs: Fix mode output in debugging statements 2020-03-05 16:42:15 +01:00
dir.c cifs_atomic_open(): fix double-put on late allocation failure 2020-03-18 07:14:21 +01:00
dns_resolve.c
dns_resolve.h
export.c
file.c CIFS: Respect O_SYNC and O_DIRECT flags during reconnect 2019-12-21 10:57:34 +01:00
fscache.c
fscache.h
inode.c cifs: don't leak -EAGAIN for stat() during reconnect 2020-03-11 14:14:57 +01:00
ioctl.c
Kconfig
link.c
Makefile
misc.c
netmisc.c fs: cifs: mute -Wunused-const-variable message 2019-11-06 13:05:51 +01:00
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c
smb1ops.c CIFS: avoid using MID 0xFFFF 2019-10-29 09:20:01 +01:00
smb2file.c cifs: Adjust indentation in smb2_open_file 2020-01-17 19:47:01 +01:00
smb2glob.h
smb2inode.c
smb2maperror.c
smb2misc.c cifs: Fix memory allocation in __smb2_handle_cancelled_cmd() 2020-02-01 09:37:04 +00:00
smb2ops.c CIFS: Respect SMB2 hdr preamble size in read responses 2019-11-06 13:05:35 +01:00
smb2pdu.c cifs: log warning message (once) if out of disk space 2020-02-24 08:34:53 +01:00
smb2pdu.h SMB3: Fix persistent handles reconnect 2019-11-12 19:20:42 +01:00
smb2proto.h CIFS: Close open handle after interrupted close 2019-12-21 10:57:35 +01:00
smb2status.h
smb2transport.c
smbdirect.c cifs: smbd: Return -EINVAL when the number of iovs exceeds SMBDIRECT_MAX_SGE 2019-12-21 10:57:32 +01:00
smbdirect.h
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h
transport.c cifs: smbd: Return -EAGAIN when transport is reconnecting 2019-12-21 10:57:31 +01:00
winucase.c
xattr.c CIFS: fix max ea value size 2019-10-05 13:10:12 +02:00