summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2020-06-23 15:32:42 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-06-23 15:33:41 -0700
commit4e608675e790b3f61b98bc38b3e8a38613b480ab (patch)
tree75252ccde9e3922143fe16ec7e346cbe5a4b680d /kernel
parent9d9d8cc21e3827b89e414f990016836290de3038 (diff)
parent02553b91da5deb63c8562b47529b09b734659af0 (diff)
Merge up to bpf_probe_read_kernel_str() fix into bpf-next
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/bpf_trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c
index e729c9e587a0..a3ac7de98baa 100644
--- a/kernel/trace/bpf_trace.c
+++ b/kernel/trace/bpf_trace.c
@@ -241,7 +241,7 @@ bpf_probe_read_kernel_str_common(void *dst, u32 size, const void *unsafe_ptr)
if (unlikely(ret < 0))
goto fail;
- return 0;
+ return ret;
fail:
memset(dst, 0, size);
return ret;