summaryrefslogtreecommitdiffstats
path: root/kernel/samples/bpf/tracex1_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/samples/bpf/tracex1_kern.c')
-rw-r--r--kernel/samples/bpf/tracex1_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/samples/bpf/tracex1_kern.c b/kernel/samples/bpf/tracex1_kern.c
index 316204637..3f450a8fa 100644
--- a/kernel/samples/bpf/tracex1_kern.c
+++ b/kernel/samples/bpf/tracex1_kern.c
@@ -29,7 +29,7 @@ int bpf_prog1(struct pt_regs *ctx)
int len;
/* non-portable! works for the given kernel only */
- skb = (struct sk_buff *) ctx->di;
+ skb = (struct sk_buff *) PT_REGS_PARM1(ctx);
dev = _(skb->dev);