Al Viro
ca9a513b01
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-20 09:07:44 +01:00
..
caching
cifs
Documentation: fix common spelling mistakes
2016-04-28 07:51:59 -06:00
configfs
configfs: switch ->default groups to a linked list
2016-03-06 16:11:24 +01:00
nfs
Various bugfixes, a RDMA update from Chuck Lever, and support for a new
2016-03-24 19:50:32 -07:00
pohmelfs
Documentation: fix common spelling mistakes
2016-04-28 07:51:59 -06:00
00-INDEX
Doc: update 00-INDEX files to reflect the runnable code move
2016-10-10 07:12:09 -06:00
9p.txt
adfs.txt
affs.txt
afs.txt
autofs4-mount-control.txt
autofs: update struct autofs_dev_ioctl in Documentation
2016-10-11 15:06:31 -07:00
autofs4.txt
autofs: fix typos in Documentation/filesystems/autofs4.txt
2016-10-11 15:06:31 -07:00
automount-support.txt
befs.txt
bfs.txt
btrfs.txt
Documentation: btrfs: remove usage specific information
2016-03-11 17:02:09 +01:00
ceph.txt
ceph: fix description for rsize and rasize mount options
2016-10-03 16:13:50 +02:00
coda.txt
cramfs.txt
mm, fs: remove remaining PAGE_CACHE_* and page_cache_{get,release} usage
2016-04-04 10:41:08 -07:00
dax.txt
dax : Fix documentation with respect to struct pages
2016-10-01 00:52:18 -06:00
debugfs.txt
devpts.txt
devpts: Make each mount of devpts an independent filesystem.
2016-06-05 10:36:01 -07:00
directory-locking
vfs: remove unused i_op->rename
2016-09-27 11:03:58 +02:00
dlmfs.txt
dnotify.txt
ecryptfs.txt
efivarfs.txt
efi: Make efivarfs entries immutable by default
2016-02-10 16:25:52 +00:00
exofs.txt
ext2.txt
ext3.txt
ext4.txt
ext4: correct documentation for grpid mount option
2018-02-22 15:43:48 +01:00
f2fs.txt
f2fs: enable inline_dentry by default and add noinline_dentry option
2016-08-29 18:31:17 -07:00
fiemap.txt
files.txt
fuse.txt
gfs2-glocks.txt
gfs2-uevents.txt
gfs2.txt
hfs.txt
hfsplus.txt
hpfs.txt
inotify.txt
isofs.txt
jfs.txt
Locking
fs: remove the never implemented aio_fsync file operation
2016-10-30 13:09:42 -04:00
locks.txt
logfs.txt
mandatory-locking.txt
ncpfs.txt
nilfs2.txt
nilfs2: move ioctl interface and disk layout to uapi separately
2016-08-02 19:35:21 -04:00
ntfs.txt
ocfs2-online-filecheck.txt
Doc: ocfs: Fix typo in filesystems/ocfs2-online-filecheck.txt
2016-07-01 16:17:15 -06:00
ocfs2.txt
omfs.txt
orangefs.txt
Orangefs: update orangefs.txt
2016-08-02 15:39:14 -04:00
overlayfs.txt
ovl: update doc
2016-09-01 11:12:00 +02:00
path-lookup.md
path-lookup.txt
porting
cifs_atomic_open(): fix double-put on late allocation failure
2020-03-20 09:07:44 +01:00
proc.txt
mm, proc: be more verbose about unstable VMA flags in /proc/<pid>/smaps
2019-01-26 09:38:36 +01:00
qnx6.txt
Documentation: fix common spelling mistakes
2016-04-28 07:51:59 -06:00
quota.txt
ramfs-rootfs-initramfs.txt
relay.txt
romfs.txt
seq_file.txt
sharedsubtree.txt
doc: fix grammar
2016-03-09 15:33:06 -07:00
spufs.txt
squashfs.txt
sysfs-pci.txt
sysfs-tagging.txt
sysfs.txt
sysv-fs.txt
tmpfs.txt
Documenation: update cgroup's document path
2016-08-03 15:43:58 -06:00
ubifs.txt
udf.txt
ufs.txt
vfat.txt
fat: add config option to set UTF-8 mount option by default
2016-03-22 15:36:02 -07:00
vfs.txt
fs: remove the never implemented aio_fsync file operation
2016-10-30 13:09:42 -04:00
xfs-delayed-logging-design.txt
xfs-self-describing-metadata.txt
xfs.txt
xfs: Document error handlers behavior
2016-09-19 09:38:25 +10:00