Lines Matching defs:end
905 /* check that offset is not beyond end of SMB */
2263 u8 *end = beg + le32_to_cpu(cc->DataLength);
2273 sid_len = posix_info_sid_size(sid, end);
2281 sid_len = posix_info_sid_size(sid, end);
4286 * smbd_buffer_descriptor_v1 to the end of read request
4740 * smbd_buffer_descriptor_v1 to the end of write request
4921 int posix_info_sid_size(const void *beg, const void *end)
4926 if (beg + 1 > end)
4934 if (beg + total > end)
4940 int posix_info_parse(const void *beg, const void *end,
4951 /* if no end bound given, assume payload to be correct */
4952 if (!end) {
4955 end = beg + le32_to_cpu(p->NextEntryOffset);
4957 if (end == beg)
4958 end += 0xFFFF;
4962 if (beg + sizeof(struct smb2_posix_info) > end)
4968 owner_len = posix_info_sid_size(owner_sid, end);
4975 group_len = posix_info_sid_size(group_sid, end);
4981 if (beg + total_len + 4 > end)
4990 if (name + name_len > end)
5005 static int posix_info_extra_size(const void *beg, const void *end)
5007 int len = posix_info_parse(beg, end, NULL);
5049 cifs_dbg(VFS, "directory entry name would overflow frame end of buf %p\n",
5210 cifs_dbg(FYI, "num entries %d last_index %lld srch start %p srch end %p\n",