summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2020-06-02 19:40:42 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2020-06-02 19:41:40 +1000
commit23b3f4a2d79e16df3c200b01c5ec6dec937a06e3 (patch)
treeaabb1358836c333ba4dd5ef3404cc91b0e1cce78
parentb2fd83dbce44d4a7adcf934ae86226ea5bc250b6 (diff)
downloadlinux-23b3f4a2d79e16df3c200b01c5ec6dec937a06e3.tar.gz
fix up for strncpy_from_unsafe_strict rename
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-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 af4bca8343ad..0d88e9b24928 100644
--- a/kernel/trace/bpf_trace.c
+++ b/kernel/trace/bpf_trace.c
@@ -619,7 +619,7 @@ BPF_CALL_5(bpf_seq_printf, struct seq_file *, m, char *, fmt, u32, fmt_size,
goto out;
}
- err = strncpy_from_unsafe_strict(bufs->buf[memcpy_cnt],
+ err = strncpy_from_kernel_nofault(bufs->buf[memcpy_cnt],
(void *) (long) args[fmt_cnt],
MAX_SEQ_PRINTF_STR_LEN);
if (err < 0)