summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorWeinan Liu <wnliu@google.com>2026-04-30 23:28:51 +0000
committerJoerg Roedel <joerg.roedel@amd.com>2026-05-04 10:26:16 +0200
commit10161b4a791d5c4b7ea16512c1ddb133c3f8f953 (patch)
tree77bffcefb4303f6018dc48f8b594dfcbc014a5d3 /tools/perf/scripts/python/syscall-counts.py
parentf9471dc1a7177f594acf8106cc4a6ab33bf0bcb6 (diff)
iommu/amd: Fix precedence order in set_dte_passthrough()
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: 93eee2a49c1b ("iommu/amd: Refactor logic to program the host page table in DTE") Signed-off-by: Weinan Liu <wnliu@google.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions