projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARC: Fix silly typo in MAINTAINERS file
[firefly-linux-kernel-4.4.55.git]
/
fs
/
cifs
/
ioctl.c
diff --git
a/fs/cifs/ioctl.c
b/fs/cifs/ioctl.c
index c63f5227b68181ed772d1a999686a852a23d41e9..28a77bf1d55924693d27d1c701571e1b1fef2d49 100644
(file)
--- a/
fs/cifs/ioctl.c
+++ b/
fs/cifs/ioctl.c
@@
-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)) {
rc = -EBADF;
cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
if ((!src_file.file->private_data) || (!dst_file->private_data)) {
rc = -EBADF;
cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");