diff options
Diffstat (limited to 'fs/cifs/connect.c')
| -rw-r--r-- | fs/cifs/connect.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 8cd4b52d421..4666780f315 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -282,7 +282,7 @@ static int coalesce_t2(struct smb_hdr *psecond, struct smb_hdr *pTargetSMB)  	byte_count = be32_to_cpu(pTargetSMB->smb_buf_length);  	byte_count += total_in_buf2;  	/* don't allow buffer to overflow */ -	if (byte_count > CIFSMaxBufSize) +	if (byte_count > CIFSMaxBufSize + MAX_CIFS_HDR_SIZE - 4)  		return -ENOBUFS;  	pTargetSMB->smb_buf_length = cpu_to_be32(byte_count); @@ -2122,7 +2122,7 @@ cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info)  		warned_on_ntlm = true;  		cERROR(1, "default security mechanism requested.  The default "  			"security mechanism will be upgraded from ntlm to " -			"ntlmv2 in kernel release 3.2"); +			"ntlmv2 in kernel release 3.3");  	}  	ses->overrideSecFlg = volume_info->secFlg; @@ -2819,7 +2819,7 @@ void cifs_setup_cifs_sb(struct smb_vol *pvolume_info,  		cifs_sb->mnt_backupgid = pvolume_info->backupgid;  	cifs_sb->mnt_file_mode = pvolume_info->file_mode;  	cifs_sb->mnt_dir_mode = pvolume_info->dir_mode; -	cFYI(1, "file mode: 0x%x  dir mode: 0x%x", +	cFYI(1, "file mode: 0x%hx  dir mode: 0x%hx",  		cifs_sb->mnt_file_mode, cifs_sb->mnt_dir_mode);  	cifs_sb->actimeo = pvolume_info->actimeo;  |