From: Steve French Date: Thu, 20 Sep 2007 15:30:07 +0000 (+0000) Subject: [CIFS] Print better error when server returns malformed QueryUnixInfo response X-Git-Tag: v2.6.24-rc1~138^2~33 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e71f25d14d70f2bf607b40ab6d7e18daca57f36;p=linux-2.6 [CIFS] Print better error when server returns malformed QueryUnixInfo response Signed-off-by: Steve French --- diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index bb30455caa..f33c89c360 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);