sdt: Fix a typo in arm's sdt_tracepoint_valid()

Reported by:	Mark Millard <marklmi@yahoo.com>
Fixes:		ddf0ed09bd ("sdt: Implement SDT probes using hot-patching")
This commit is contained in:
Mark Johnston
2025-05-13 19:36:24 +00:00
parent 91c9751c39
commit 15143ba61a
+1 -1
View File
@@ -24,7 +24,7 @@ sdt_tracepoint_valid(uintptr_t patchpoint, uintptr_t target)
patchpoint + 2 * INSN_SIZE < patchpoint)
return (false);
offset = target - (patchpoint + 2 * INSN_SIZE);
if (offset < -(1 << 24) || offset > (1 >> 24))
if (offset < -(1 << 24) || offset > (1 << 24))
return (false);
return (true);
}