mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00: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:
|
History
|
|
|---|---|---|
| .. | ||
| amd_iommu.h | ||
| amd_iommu_types.h | ||
| debugfs.c | ||
| init.c | ||
| iommu.c | ||
| iommufd.c | ||
| iommufd.h | ||
| Kconfig | ||
| Makefile | ||
| nested.c | ||
| pasid.c | ||
| ppr.c | ||
| quirks.c | ||