avb: check some allocation errors

This commit is contained in:
Wim Taymans 2026-05-04 09:56:18 +02:00
parent 32bb568225
commit be6bfba8eb
2 changed files with 4 additions and 0 deletions

View file

@ -166,6 +166,8 @@ struct avb_mmrp_attribute *avb_mmrp_attribute_new(struct avb_mmrp *m,
struct attr *a;
attr = avb_mrp_attribute_new(mmrp->server->mrp, sizeof(struct attr));
if (attr == NULL)
return NULL;
a = attr->user_data;
a->attr.mrp = attr;