> From: Gustavo A. R. Silva <[email protected]>
> Sent: Tuesday, November 11, 2025 5:01 PM
> 
> One of the requirements for counted_by annotations is that the counter
> member must be initialized before the first reference to the
> flexible-array member.
> 
> Move the vevent->data_len = data_len; initialization to before the
> first access to flexible array vevent->event_data.
> 
> Cc: [email protected]
> Fixes: e8e1ef9b77a7 ("iommufd/viommu: Add
> iommufd_viommu_report_event helper")
> Signed-off-by: Gustavo A. R. Silva <[email protected]>

Reviewed-by: Kevin Tian <[email protected]>

Reply via email to