aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-09-20 11:30:07 -0400
committerSteve French <sfrench@us.ibm.com>2007-09-20 11:30:07 -0400
commit1e71f25d14d70f2bf607b40ab6d7e18daca57f36 (patch)
treebe75c63dea24cb07dc59ecc75b1c82ff0779a514 /fs/cifs
parent5a44b3190e3441986648ff664ef045685995324b (diff)
[CIFS] Print better error when server returns malformed QueryUnixInfo response
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/cifssmb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index bb30455caabc..f33c89c36039 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -3361,6 +3361,9 @@ UnixQPathInfoRetry:
3361 rc = validate_t2((struct smb_t2_rsp *)pSMBr); 3361 rc = validate_t2((struct smb_t2_rsp *)pSMBr);
3362 3362
3363 if (rc || (pSMBr->ByteCount < sizeof(FILE_UNIX_BASIC_INFO))) { 3363 if (rc || (pSMBr->ByteCount < sizeof(FILE_UNIX_BASIC_INFO))) {
3364 cERROR(1, ("Malformed FILE_UNIX_BASIC_INFO response.\n"
3365 "Unix Extensions can be disabled on mount "
3366 "by specifying the nosfu mount option."));
3364 rc = -EIO; /* bad smb */ 3367 rc = -EIO; /* bad smb */
3365 } else { 3368 } else {
3366 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); 3369 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);