summaryrefslogtreecommitdiff
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-09-20 15:30:07 +0000
committerSteve French <sfrench@us.ibm.com>2007-09-20 15:30:07 +0000
commit1e71f25d14d70f2bf607b40ab6d7e18daca57f36 (patch)
treebe75c63dea24cb07dc59ecc75b1c82ff0779a514 /fs/cifs/cifssmb.c
parent5a44b3190e3441986648ff664ef045685995324b (diff)
downloadlwn-1e71f25d14d70f2bf607b40ab6d7e18daca57f36.tar.gz
lwn-1e71f25d14d70f2bf607b40ab6d7e18daca57f36.zip
[CIFS] Print better error when server returns malformed QueryUnixInfo response
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-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:
rc = validate_t2((struct smb_t2_rsp *)pSMBr);
if (rc || (pSMBr->ByteCount < sizeof(FILE_UNIX_BASIC_INFO))) {
+ cERROR(1, ("Malformed FILE_UNIX_BASIC_INFO response.\n"
+ "Unix Extensions can be disabled on mount "
+ "by specifying the nosfu mount option."));
rc = -EIO; /* bad smb */
} else {
__u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);