Re: [patch V3 16/22] genirq/msi: Provide new domain id based interfaces for freeing interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux