]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: correctly set fuse_release_in.flags in an error path
authorAlan Somers <asomers@FreeBSD.org>
Wed, 27 Mar 2019 02:57:59 +0000 (02:57 +0000)
committerAlan Somers <asomers@FreeBSD.org>
Wed, 27 Mar 2019 02:57:59 +0000 (02:57 +0000)
commite0bec057db30325aad4f729ba7f77c116dbcfdf6
tree7226b0986e68e969b0aa7b81aee94bec711f3904
parent4a4282cb06876a67281de1a81954db68a97105c7
fusefs: correctly set fuse_release_in.flags in an error path

fuse_vnop_create must close the newly created file if it can't allocate a
vnode.  When it does so, it must use the same file flags for FUSE_RELEASE as
it used for FUSE_OPEN or FUSE_CREATE.

Reported by: Coverity
Coverity CID: 1066204
Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/allow_other.cc
tests/sys/fs/fusefs/fsync.cc
tests/sys/fs/fusefs/readdir.cc
tests/sys/fs/fusefs/release.cc
tests/sys/fs/fusefs/utils.cc
tests/sys/fs/fusefs/utils.hh