for (count = 1; count <= list->lkl_maxattr; count++) {
struct nlattr *key = nla_nest_start(msg, count);
+ if (!key)
+ return -EMSGSIZE;
+
if (count == 1)
nla_put_u16(msg, LN_SCALAR_ATTR_LIST_SIZE,
list->lkl_maxattr);
nlist->lngl_idx = 0;
cb->args[0] = (long)nlist;
+ cb->min_dump_alloc = U16_MAX;
if (!msg_len)
return 0;