Re: [PATCH v2] iommu/amd: Relay __modify_irte_ga() error in modify_irte_ga()
From: Vasant Hegde
Date: Fri Nov 21 2025 - 03:14:10 EST
On 11/21/2025 10:51 AM, Jinhui Guo wrote:
> The return type of __modify_irte_ga() is int, but modify_irte_ga()
> treats it as a bool. Casting the int to bool discards the error code.
>
> To fix the issue, change the type of ret to int in modify_irte_ga().
>
> Fixes: 57cdb720eaa5 ("iommu/amd: Do not flush IRTE when only updating isRun and destination fields")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jinhui Guo <guojinhui.liam@xxxxxxxxxxxxx>
> Reviewed-by: Ankit Soni <Ankit.Soni@xxxxxxx>
Reviewed-by: Vasant Hegde <vasant.hegde@xxxxxxx>
-Vasant