iommu/arm-smmu: Fix atomic domain attribute check
When checking if a domain is a atomic or not, the driver code will take the bitwise AND of the 64-bit domain attributes field and a bitmask with bit 32 set. This value is then implicitly cast to an int, which truncates the upper 32 bits--losing the bit that indicates if the domain is atomic or not--and based on that int, we determine if the domain is atomic, which will vacuously be false. Instead, check if the bitwise AND operation yields a non-zero value when determining if a domain is atomic or not to prevent any truncation errors. Change-Id: I96753035b47b848bc4d1e8029c8f3f46e03f8c67 Signed-off-by:Isaac J. Manjarres <isaacm@codeaurora.org> Signed-off-by:
George Shen <sqiao@codeaurora.org>
Loading
Please register or sign in to comment