Message ID | 168908492917.123124.15076463491122036025.stgit@devnote2 (mailing list archive) |
---|---|
State | Accepted |
Commit | 66bcf65d6cf0ca6540e2341e88ee7ef02dbdda08 |
Delegated to: | Masami Hiramatsu |
Headers | show |
Series | tracing/probes: Fix bugs in process_fetch_insn | expand |
diff --git a/kernel/trace/trace_probe_tmpl.h b/kernel/trace/trace_probe_tmpl.h index 00707630788d..4735c5cb76fa 100644 --- a/kernel/trace/trace_probe_tmpl.h +++ b/kernel/trace/trace_probe_tmpl.h @@ -156,11 +156,11 @@ process_fetch_insn_bottom(struct fetch_insn *code, unsigned long val, code++; goto array; case FETCH_OP_ST_USTRING: - ret += fetch_store_strlen_user(val + code->offset); + ret = fetch_store_strlen_user(val + code->offset); code++; goto array; case FETCH_OP_ST_SYMSTR: - ret += fetch_store_symstrlen(val + code->offset); + ret = fetch_store_symstrlen(val + code->offset); code++; goto array; default: