Commit 50df063c authored by Steve French's avatar Steve French

fix fealist struct (xattr support part 3)

Signed-off-by: Steve French (sfrench@us.ibm.com)
parent 6f060189
......@@ -1700,7 +1700,7 @@ struct fea {
#define FEA_NEEDEA 0x80 /* need EA bit */
struct fealist {
unsigned long list_len;
__u32 list_len;
struct fea list[1];
};
......
......@@ -2955,8 +2955,21 @@ CIFSSMBQAllEAs(const int xid, struct cifsTconInfo *tcon,
memcpy((char *) pFindData,
(char *) &pSMBr->hdr.Protocol +
pSMBr->DataOffset, kl);
}*/ else
rc = -ENOMEM;
}*/ else {
/* check that length of list is not more than bcc */
/* check that each entry does not go beyond length
of list */
/* check that each element of each entry does not
go beyond end of list */
struct fealist * ea_response_data;
rc = 0;
/* validate_trans2_offsets() */
/* BB to check if(start of smb + pSMBr->DataOffset > &bcc+ bcc)*/
ea_response_data = (struct fealist *)
(((char *) &pSMBr->hdr.Protocol) +
pSMBr->DataOffset);
cFYI(1,("ea length %d",ea_response_data->list_len));
}
}
if (pSMB)
cifs_buf_release(pSMB);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment