diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-14 15:49:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-14 15:49:15 -0400 |
commit | 9c488de24f7264f08d341024bffdd637b4d04c96 (patch) | |
tree | a644ba6ccaed95729b121a1ccd269ace4e383b33 /fs | |
parent | 57e6bbcb4beb4c87aa93e78a1db08fdaab9ee65f (diff) | |
parent | eda2116f4ab6d79cfcffc202b5d2bbb0797ba013 (diff) |
Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6
Pull CIFS fixes from Steve French:
"Two small cifs fixes"
* 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
[CIFS] mount option sec=none not displayed properly in /proc/mounts
CIFS: fix type confusion in copy offload ioctl
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/cifsfs.c | 5 | ||||
-rw-r--r-- | fs/cifs/ioctl.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 6a1119e87fbb..e739950ca084 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -325,8 +325,11 @@ cifs_show_address(struct seq_file *s, struct TCP_Server_Info *server) | |||
325 | static void | 325 | static void |
326 | cifs_show_security(struct seq_file *s, struct cifs_ses *ses) | 326 | cifs_show_security(struct seq_file *s, struct cifs_ses *ses) |
327 | { | 327 | { |
328 | if (ses->sectype == Unspecified) | 328 | if (ses->sectype == Unspecified) { |
329 | if (ses->user_name == NULL) | ||
330 | seq_puts(s, ",sec=none"); | ||
329 | return; | 331 | return; |
332 | } | ||
330 | 333 | ||
331 | seq_puts(s, ",sec="); | 334 | seq_puts(s, ",sec="); |
332 | 335 | ||
diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c index c63f5227b681..28a77bf1d559 100644 --- 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, | |||
67 | goto out_drop_write; | 67 | goto out_drop_write; |
68 | } | 68 | } |
69 | 69 | ||
70 | if (src_file.file->f_op->unlocked_ioctl != cifs_ioctl) { | ||
71 | rc = -EBADF; | ||
72 | cifs_dbg(VFS, "src file seems to be from a different filesystem type\n"); | ||
73 | goto out_fput; | ||
74 | } | ||
75 | |||
70 | if ((!src_file.file->private_data) || (!dst_file->private_data)) { | 76 | if ((!src_file.file->private_data) || (!dst_file->private_data)) { |
71 | rc = -EBADF; | 77 | rc = -EBADF; |
72 | cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n"); | 78 | cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n"); |