浏览代码

[CIFS] Fix checkpatch warnings

Also update version number to 1.61

Signed-off-by: Steve French <sfrench@us.ibm.com>
Steve French 16 年之前
父节点
当前提交
ca43e3beee
共有 3 个文件被更改,包括 11 次插入8 次删除
  1. 4 1
      fs/cifs/CHANGES
  2. 1 1
      fs/cifs/cifsfs.h
  3. 6 6
      fs/cifs/connect.c

+ 4 - 1
fs/cifs/CHANGES

@@ -3,7 +3,10 @@ Version 1.60
 Fix memory leak in reconnect.  Fix oops in DFS mount error path.
 Fix memory leak in reconnect.  Fix oops in DFS mount error path.
 Set s_maxbytes to smaller (the max that vfs can handle) so that
 Set s_maxbytes to smaller (the max that vfs can handle) so that
 sendfile will now work over cifs mounts again.  Add noforcegid
 sendfile will now work over cifs mounts again.  Add noforcegid
-and noforceuid mount parameters.
+and noforceuid mount parameters. Fix small mem leak when using
+ntlmv2. Fix 2nd mount to same server but with different port to
+be allowed (rather than reusing the 1st port) - only when the
+user explicitly overrides the port on the 2nd mount.
 
 
 Version 1.59
 Version 1.59
 ------------
 ------------

+ 1 - 1
fs/cifs/cifsfs.h

@@ -113,5 +113,5 @@ extern long cifs_ioctl(struct file *filep, unsigned int cmd, unsigned long arg);
 extern const struct export_operations cifs_export_ops;
 extern const struct export_operations cifs_export_ops;
 #endif /* EXPERIMENTAL */
 #endif /* EXPERIMENTAL */
 
 
-#define CIFS_VERSION   "1.60"
+#define CIFS_VERSION   "1.61"
 #endif				/* _CIFSFS_H */
 #endif				/* _CIFSFS_H */

+ 6 - 6
fs/cifs/connect.c

@@ -1415,17 +1415,17 @@ cifs_find_tcp_session(struct sockaddr_storage *addr, unsigned short int port)
 		case AF_INET6:
 		case AF_INET6:
 			if (ipv6_addr_equal(&addr6->sin6_addr,
 			if (ipv6_addr_equal(&addr6->sin6_addr,
 			    &server->addr.sockAddr6.sin6_addr) &&
 			    &server->addr.sockAddr6.sin6_addr) &&
-			    (addr6->sin6_scope_id == 
+			    (addr6->sin6_scope_id ==
 			    server->addr.sockAddr6.sin6_scope_id)) {
 			    server->addr.sockAddr6.sin6_scope_id)) {
 				addr6->sin6_port = htons(port);
 				addr6->sin6_port = htons(port);
 				/* user overrode default port? */
 				/* user overrode default port? */
 				if (addr6->sin6_port) {
 				if (addr6->sin6_port) {
-				       if (addr6->sin6_port !=
+					if (addr6->sin6_port !=
 					   server->addr.sockAddr6.sin6_port)
 					   server->addr.sockAddr6.sin6_port)
-					       continue;
+						continue;
 				}
 				}
 				break;
 				break;
-			} else 
+			} else
 				continue;
 				continue;
 		}
 		}
 
 
@@ -2657,9 +2657,9 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses,
 		return -EIO;
 		return -EIO;
 
 
 	smb_buffer = cifs_buf_get();
 	smb_buffer = cifs_buf_get();
-	if (smb_buffer == NULL) {
+	if (smb_buffer == NULL)
 		return -ENOMEM;
 		return -ENOMEM;
-	}
+
 	smb_buffer_response = smb_buffer;
 	smb_buffer_response = smb_buffer;
 
 
 	header_assemble(smb_buffer, SMB_COM_TREE_CONNECT_ANDX,
 	header_assemble(smb_buffer, SMB_COM_TREE_CONNECT_ANDX,