]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: fuse_dev_ioctl_clone() should wait for device file to be initialized
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 2 Apr 2026 18:19:55 +0000 (20:19 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 2 Apr 2026 18:29:34 +0000 (20:29 +0200)
commitda6fcc6dbddbef80e603d2f0c1554a9f2ac03742
tree3626336a0d27cdb57053e62906ddb64dd53e8fbe
parentaff12041b4b2f4f2c164a0cf1b9688408515d036
fuse: fuse_dev_ioctl_clone() should wait for device file to be initialized

Use fuse_get_dev() not __fuse_get_dev() on the old fd, since in the case of
synchronous INIT the caller will want to wait for the device file to be
available for cloning, just like I/O wants to wait instead of returning an
error.

Fixes: dfb84c330794 ("fuse: allow synchronous FUSE_INIT")
Cc: stable@vger.kernel.org # v6.18
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c