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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user