aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2009-09-01 13:20:50 -0400
committerSteve French <sfrench@us.ibm.com>2009-09-01 13:20:50 -0400
commitca43e3beee38623a3f80691b28623d6ecf214742 (patch)
tree779d99d0f4a29d3fc6541f48423da9852eb6bbbe /fs/cifs
parentbdb97adcdf0993adbd2eef44b4533620d43792de (diff)
[CIFS] Fix checkpatch warnings
Also update version number to 1.61 Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/CHANGES5
-rw-r--r--fs/cifs/cifsfs.h2
-rw-r--r--fs/cifs/connect.c12
3 files changed, 11 insertions, 8 deletions
diff --git a/fs/cifs/CHANGES b/fs/cifs/CHANGES
index e85b1e4389e..145540a316a 100644
--- a/fs/cifs/CHANGES
+++ b/fs/cifs/CHANGES
@@ -3,7 +3,10 @@ Version 1.60
3Fix memory leak in reconnect. Fix oops in DFS mount error path. 3Fix memory leak in reconnect. Fix oops in DFS mount error path.
4Set s_maxbytes to smaller (the max that vfs can handle) so that 4Set s_maxbytes to smaller (the max that vfs can handle) so that
5sendfile will now work over cifs mounts again. Add noforcegid 5sendfile will now work over cifs mounts again. Add noforcegid
6and noforceuid mount parameters. 6and noforceuid mount parameters. Fix small mem leak when using
7ntlmv2. Fix 2nd mount to same server but with different port to
8be allowed (rather than reusing the 1st port) - only when the
9user explicitly overrides the port on the 2nd mount.
7 10
8Version 1.59 11Version 1.59
9------------ 12------------
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h
index 6c170948300..094325e3f71 100644
--- a/fs/cifs/cifsfs.h
+++ b/fs/cifs/cifsfs.h
@@ -113,5 +113,5 @@ extern long cifs_ioctl(struct file *filep, unsigned int cmd, unsigned long arg);
113extern const struct export_operations cifs_export_ops; 113extern const struct export_operations cifs_export_ops;
114#endif /* EXPERIMENTAL */ 114#endif /* EXPERIMENTAL */
115 115
116#define CIFS_VERSION "1.60" 116#define CIFS_VERSION "1.61"
117#endif /* _CIFSFS_H */ 117#endif /* _CIFSFS_H */
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 4e47a9b800c..d49682433c2 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1415,17 +1415,17 @@ cifs_find_tcp_session(struct sockaddr_storage *addr, unsigned short int port)
1415 case AF_INET6: 1415 case AF_INET6:
1416 if (ipv6_addr_equal(&addr6->sin6_addr, 1416 if (ipv6_addr_equal(&addr6->sin6_addr,
1417 &server->addr.sockAddr6.sin6_addr) && 1417 &server->addr.sockAddr6.sin6_addr) &&
1418 (addr6->sin6_scope_id == 1418 (addr6->sin6_scope_id ==
1419 server->addr.sockAddr6.sin6_scope_id)) { 1419 server->addr.sockAddr6.sin6_scope_id)) {
1420 addr6->sin6_port = htons(port); 1420 addr6->sin6_port = htons(port);
1421 /* user overrode default port? */ 1421 /* user overrode default port? */
1422 if (addr6->sin6_port) { 1422 if (addr6->sin6_port) {
1423 if (addr6->sin6_port != 1423 if (addr6->sin6_port !=
1424 server->addr.sockAddr6.sin6_port) 1424 server->addr.sockAddr6.sin6_port)
1425 continue; 1425 continue;
1426 } 1426 }
1427 break; 1427 break;
1428 } else 1428 } else
1429 continue; 1429 continue;
1430 } 1430 }
1431 1431
@@ -2657,9 +2657,9 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses,
2657 return -EIO; 2657 return -EIO;
2658 2658
2659 smb_buffer = cifs_buf_get(); 2659 smb_buffer = cifs_buf_get();
2660 if (smb_buffer == NULL) { 2660 if (smb_buffer == NULL)
2661 return -ENOMEM; 2661 return -ENOMEM;
2662 } 2662
2663 smb_buffer_response = smb_buffer; 2663 smb_buffer_response = smb_buffer;
2664 2664
2665 header_assemble(smb_buffer, SMB_COM_TREE_CONNECT_ANDX, 2665 header_assemble(smb_buffer, SMB_COM_TREE_CONNECT_ANDX,