|
@@ -67,6 +67,12 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
|
|
goto out_drop_write;
|
|
goto out_drop_write;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (src_file.file->f_op->unlocked_ioctl != cifs_ioctl) {
|
|
|
|
+ rc = -EBADF;
|
|
|
|
+ cifs_dbg(VFS, "src file seems to be from a different filesystem type\n");
|
|
|
|
+ goto out_fput;
|
|
|
|
+ }
|
|
|
|
+
|
|
if ((!src_file.file->private_data) || (!dst_file->private_data)) {
|
|
if ((!src_file.file->private_data) || (!dst_file->private_data)) {
|
|
rc = -EBADF;
|
|
rc = -EBADF;
|
|
cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
|
|
cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
|