Searched refs:minlen (Results 1 – 1 of 1) sorted by relevance
/lib/ |
D | nlattr.c | 34 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() local 51 minlen = min_t(int, attrlen, pt->len + 1); in validate_nla() 53 minlen = attrlen; in validate_nla() 55 if (!minlen || memchr(nla_data(nla), '\0', minlen) == NULL) in validate_nla() 98 minlen = pt->len; in validate_nla() 100 minlen = nla_attr_minlen[pt->type]; in validate_nla() 102 if (attrlen < minlen) in validate_nla() 279 int minlen = min_t(int, count, nla_len(src)); in nla_memcpy() local 281 memcpy(dest, nla_data(src), minlen); in nla_memcpy() 282 if (count > minlen) in nla_memcpy() [all …]
|