smb2_ea_info
static int smb2_set_ea(struct smb2_ea_info *eabuf, unsigned int buf_len,
if (buf_len < sizeof(struct smb2_ea_info) + eabuf->EaNameLength + 1 +
eabuf = (struct smb2_ea_info *)((char *)eabuf + next);
if (buf_len < sizeof(struct smb2_ea_info)) {
if (buf_len < sizeof(struct smb2_ea_info) + eabuf->EaNameLength + 1 +
sizeof(struct smb2_ea_info)) {
struct smb2_ea_info *eainfo, *prev_eainfo;
eainfo = (struct smb2_ea_info *)ptr;
buf_free_len -= (offsetof(struct smb2_ea_info, name) +
next_offset = offsetof(struct smb2_ea_info, name) +
eainfo = (struct smb2_ea_info *)ptr;
if (buf_len < sizeof(struct smb2_ea_info))
return smb2_set_ea((struct smb2_ea_info *)buffer,
struct smb2_ea_info ea;