bpf: Fix aarch64 access to regs

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/309/head
Dave Tucker 2 years ago
parent cda9ab4f66
commit 7e828df1c9

@ -142,7 +142,7 @@ impl<T> FromPtRegs for *const T {
} }
fn from_retval(ctx: &pt_regs) -> Option<Self> { fn from_retval(ctx: &pt_regs) -> Option<Self> {
ctx.regs().map(|regs| regs[0] as _) Some(ctx.regs.regs[0] as *const _)
} }
} }

Loading…
Cancel
Save