diff options
| author | Ye Liu <liuye@kylinos.cn> | 2026-05-13 05:21:17 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-06-03 01:22:18 +0300 |
| commit | e696ff06db374c1adb877d20e56085abe1d109a3 (patch) | |
| tree | 4a0779cdefc4753e6084083694731bcf82c9c788 /include | |
| parent | 96f9fb92126a4fb5b24a54964eaef8f82cc2ab7f (diff) | |
| download | linux-e696ff06db374c1adb877d20e56085abe1d109a3.tar.xz | |
tools/mm/page-types: fix ternary operator precedence in sigbus handler
The ternary operator (?:) has lower precedence than addition (+), so the
expression `off + sigbus_addr ? sigbus_addr - ptr : 0` was parsed as
`(off + sigbus_addr) ? (sigbus_addr - ptr) : 0` rather than the intended
`off + (sigbus_addr ? sigbus_addr - ptr : 0)`. Add explicit parentheses
to ensure the correct evaluation order.
Link: https://lore.kernel.org/20260513022120.58033-3-ye.liu@linux.dev
Signed-off-by: Ye Liu <liuye@kylinos.cn>
Acked-by: SeongJae Park <sj@kernel.org>
Cc: David Hildenbrand (Arm) <david@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
