Merge pull request #309 from dave-tucker/bpf-regs-bug

bpf: Fix aarch64 access to regs
pull/290/head
Dave Tucker 2 years ago committed by GitHub
commit ef3b029d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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