From: Colin King <hidden> Date: 2021-02-04 15:12:37
From: Colin Ian King <redacted>
Currently the check for domid < 0 is always false because domid
is unsigned. Fix this by casting domid to an int before making
the comparison.
Addresses-Coverity: ("Unsigned comparison against 0")
Signed-off-by: Colin Ian King <redacted>
---
V2: cast domid rather than making it an int. Replace L with : in
the commit message.
---
drivers/iommu/mtk_iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Will Deacon <will@kernel.org> Date: 2021-02-04 15:47:19
On Thu, Feb 04, 2021 at 03:00:01PM +0000, Colin King wrote:
quoted hunk
From: Colin Ian King <redacted>
Currently the check for domid < 0 is always false because domid
is unsigned. Fix this by casting domid to an int before making
the comparison.
Addresses-Coverity: ("Unsigned comparison against 0")
Signed-off-by: Colin Ian King <redacted>
---
V2: cast domid rather than making it an int. Replace L with : in
the commit message.
---
drivers/iommu/mtk_iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)