mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
Revert "fuse: fix matching of FUSE_DEV_IOC_CLONE command"
This reverts commit 6076f5f341.
This is currently breaking avd/avd_boot_test_kernel_triggered on
kernel_virt_x86_64, when tested against android-mainline which is
preventing an up-level to v5.13-rc1. We can do some more
investigation later, but for now, we'll simply revert the change.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I56d3360a7cc0f176da102ab59fdcf2e3b9f2a46d
This commit is contained in:
@@ -2243,8 +2243,11 @@ static long fuse_dev_ioctl(struct file *file, unsigned int cmd,
|
||||
struct fuse_dev *fud = NULL;
|
||||
struct fuse_passthrough_out pto;
|
||||
|
||||
switch (cmd) {
|
||||
case FUSE_DEV_IOC_CLONE:
|
||||
if (_IOC_TYPE(cmd) != FUSE_DEV_IOC_MAGIC)
|
||||
return -ENOTTY;
|
||||
|
||||
switch (_IOC_NR(cmd)) {
|
||||
case _IOC_NR(FUSE_DEV_IOC_CLONE):
|
||||
res = -EFAULT;
|
||||
if (!get_user(oldfd, (__u32 __user *)arg)) {
|
||||
struct file *old = fget(oldfd);
|
||||
|
||||
Reference in New Issue
Block a user