On Mon, 2023-01-16 at 09:56 +0000, David Woodhouse wrote:
> 
>       msi_for_each_desc(msidesc, &dev->dev, MSI_DESC_ASSOCIATED) {
> -             for (i = 0; i < msidesc->nvec_used; i++)
> +             for (i = 0; i < msidesc->nvec_used; i++) {
>                       xen_destroy_irq(msidesc->irq + i);
> +                     msidesc->irq = 0;
> +             }
>       }
>  }
>  

Der, setting it to zero wants to be in the msi_for_each_desc() loop and
*not* in the 'for i' loop of course.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to