projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bpf: Prepare bpf syscall to be used from kernel and user space.
[linux-2.6-block.git]
/
net
/
bpf
/
test_run.c
diff --git
a/net/bpf/test_run.c
b/net/bpf/test_run.c
index a6972d7ddf8054886648aa1d05111bca0406195d..aa47af349ba804fa6d73f79bdd437591e2c52721 100644
(file)
--- a/
net/bpf/test_run.c
+++ b/
net/bpf/test_run.c
@@
-409,7
+409,7
@@
static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size)
return ERR_PTR(-ENOMEM);
if (data_in) {
- err = bpf_check_uarg_tail_zero(
data_in
, max_size, size);
+ err = bpf_check_uarg_tail_zero(
USER_BPFPTR(data_in)
, max_size, size);
if (err) {
kfree(data);
return ERR_PTR(err);