[PATCH v2] iommu/riscv: Fix signedness bug
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Wed Apr 29 20:25:10 PDT 2026
Hello:
This patch was applied to riscv/linux.git (fixes)
by Joerg Roedel <joerg.roedel at amd.com>:
On Thu, 26 Mar 2026 12:57:38 -0500 you wrote:
> The function platform_irq_count() returns negative error codes and
> iommu->irqs_count is an unsigned integer, so the check
> (iommu->irqs_count <= 0) is always impossible.
>
> Make the return value of platform_irq_count() be assigned to ret, check
> for error, and then assign iommu->irqs_count to ret.
>
> [...]
Here is the summary with links:
- [v2] iommu/riscv: Fix signedness bug
https://git.kernel.org/riscv/c/553a127cb665
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-riscv
mailing list