Lines Matching refs:attrbuf
554 struct nlattr **attrbuf; in genl_family_rcv_msg_attrs_parse() local
560 attrbuf = kmalloc_array(ops->maxattr + 1, in genl_family_rcv_msg_attrs_parse()
562 if (!attrbuf) in genl_family_rcv_msg_attrs_parse()
565 err = __nlmsg_parse(nlh, hdrlen, attrbuf, ops->maxattr, ops->policy, in genl_family_rcv_msg_attrs_parse()
568 kfree(attrbuf); in genl_family_rcv_msg_attrs_parse()
571 return attrbuf; in genl_family_rcv_msg_attrs_parse()
574 static void genl_family_rcv_msg_attrs_free(struct nlattr **attrbuf) in genl_family_rcv_msg_attrs_free() argument
576 kfree(attrbuf); in genl_family_rcv_msg_attrs_free()
727 struct nlattr **attrbuf; in genl_family_rcv_msg_doit() local
734 attrbuf = genl_family_rcv_msg_attrs_parse(family, nlh, extack, in genl_family_rcv_msg_doit()
737 if (IS_ERR(attrbuf)) in genl_family_rcv_msg_doit()
738 return PTR_ERR(attrbuf); in genl_family_rcv_msg_doit()
745 info.attrs = attrbuf; in genl_family_rcv_msg_doit()
762 genl_family_rcv_msg_attrs_free(attrbuf); in genl_family_rcv_msg_doit()