On 4/28/2020 1:21 PM, Dan Carpenter wrote:
> What I meant to say here was:
> 
>       if (msi) {
>               rc = hidma_request_msi(dmadev, pdev);
>               if (rc)
>                       msi = false;
> 
> Otherwise we end up checking freeing the msi in the error handling
> code when we did not take it.
> 
> Hopefully, that clears things up?

Yes, that works. However, I'd rather use a different flag for this
in order not to mix the meaning of msi capability vs. msi allocation
failure.

Reply via email to