summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe Liu <liuye@kylinos.cn>2026-05-13 05:21:17 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-06-03 01:22:18 +0300
commite696ff06db374c1adb877d20e56085abe1d109a3 (patch)
tree4a0779cdefc4753e6084083694731bcf82c9c788 /include
parent96f9fb92126a4fb5b24a54964eaef8f82cc2ab7f (diff)
downloadlinux-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