aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-02-04 15:00:01 +0000
committerJoerg Roedel <[email protected]>2021-02-05 08:49:47 +0000
commit7a5661739d4bf23cd356fb13bb1e0790e09df3c5 (patch)
treeed2b5f8ad31bd3aec73161bd8a5e8a25f4c425ad /drivers/platform/x86/intel/pmt/class.c
parentiommu: Properly pass gfp_t in _iommu_map() to avoid atomic sleeping (diff)
downloadkernel-7a5661739d4bf23cd356fb13bb1e0790e09df3c5.tar.gz
kernel-7a5661739d4bf23cd356fb13bb1e0790e09df3c5.zip
iommu/mediatek: Fix unsigned domid comparison with less than zero
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. Signed-off-by: Colin Ian King <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Addresses-Coverity: ("Unsigned comparison against 0") Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions