mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 08:39:31 +02:00
Bitwise OR | operator has a higher precedence than the ternary ?:
operatior. It will be incorrectly evaluated as:
new->data[1] |= (FIELD_PREP(...) | dev_data->ats_enabled) ? DTE_FLAG_IOTLB : 0;
Wrap the conditional operation in parentheses to enforce the
correct evaluation order.
Fixes:
|
||
|---|---|---|
| .. | ||
| amd_iommu_types.h | ||
| amd_iommu.h | ||
| debugfs.c | ||
| init.c | ||
| iommu.c | ||
| iommufd.c | ||
| iommufd.h | ||
| Kconfig | ||
| Makefile | ||
| nested.c | ||
| pasid.c | ||
| ppr.c | ||
| quirks.c | ||