Message ID | 168830923752.2278819.12200306485001986374.stgit@mhiramat.roam.corp.google.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | tracing/probes: Fix bugs in process_fetch_insn | expand |
On Sun, 2 Jul 2023 17:44:38 +0200 Markus Elfring <Markus.Elfring@web.de> wrote: > … > > Just set the length to the 'ret' value to aviod double count. > > Would the wording “… avoid double counting” be more appropriate > for a subsequent change description? Yeah, thanks! > > Regards, > Markus
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: