]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: correctly set fuse_release_in.flags in an error path
authorasomers <asomers@FreeBSD.org>
Wed, 27 Mar 2019 02:57:59 +0000 (02:57 +0000)
committerasomers <asomers@FreeBSD.org>
Wed, 27 Mar 2019 02:57:59 +0000 (02:57 +0000)
commite8fc0e407d49fe497df0eb43f22a41f7fe4ebd89
tree7226b0986e68e969b0aa7b81aee94bec711f3904
parent82dbce95c39f3232eff1b8e72de3e5195611a4b0
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