Commit da6fcc6
Miklos Szeredi
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: dfb84c3 ("fuse: allow synchronous FUSE_INIT")
Cc: stable@vger.kernel.org # v6.18
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>1 parent aff1204 commit da6fcc6
1 file changed
Lines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2597 | 2597 | | |
2598 | 2598 | | |
2599 | 2599 | | |
2600 | | - | |
2601 | 2600 | | |
2602 | | - | |
| 2601 | + | |
2603 | 2602 | | |
2604 | 2603 | | |
2605 | 2604 | | |
| |||
2612 | 2611 | | |
2613 | 2612 | | |
2614 | 2613 | | |
2615 | | - | |
2616 | | - | |
| 2614 | + | |
| 2615 | + | |
2617 | 2616 | | |
2618 | | - | |
2619 | | - | |
2620 | | - | |
2621 | | - | |
2622 | | - | |
2623 | | - | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
2624 | 2620 | | |
2625 | | - | |
| 2621 | + | |
| 2622 | + | |
2626 | 2623 | | |
2627 | 2624 | | |
2628 | 2625 | | |
| |||
0 commit comments