milan-avb: move teh descriptor FAM at the end of the structure to avoid overflow

This commit is contained in:
hackerman-kl 2026-04-26 13:03:10 +02:00 committed by Wim Taymans
parent 4d33f57325
commit 0bf4864d84
14 changed files with 126 additions and 204 deletions

View file

@ -280,7 +280,7 @@ static int check_advertise(struct adp *adp, uint64_t now)
if (d == NULL)
return -1;
entity = d->ptr;
entity = descriptor_body(d);
entity_id = be64toh(entity->entity_id);
if ((e = find_entity_by_id(adp, entity_id)) != NULL) {
@ -290,7 +290,7 @@ static int check_advertise(struct adp *adp, uint64_t now)
}
d = server_find_descriptor(server, AVB_AEM_DESC_AVB_INTERFACE, 0);
avb_interface = d ? d->ptr : NULL;
avb_interface = d ? descriptor_body(d) : NULL;
pw_log_info("entity %s advertise",
avb_utils_format_id(buf, sizeof(buf), entity_id));