diff options
author | Masami Hiramatsu (Google) <[email protected]> | 2023-07-11 23:15:38 +0900 |
---|---|---|
committer | Masami Hiramatsu (Google) <[email protected]> | 2023-07-14 00:36:28 +0900 |
commit | b41326b5e0f82e93592c4366359917b5d67b529f (patch) | |
tree | 42c2536e3af3af29edd6fa6ff637652426105eed /lib/mpi/mpi-internal.h | |
parent | 66bcf65d6cf0ca6540e2341e88ee7ef02dbdda08 (diff) |
tracing/probes: Fix not to count error code to total length
Fix not to count the error code (which is minus value) to the total
used length of array, because it can mess up the return code of
process_fetch_insn_bottom(). Also clear the 'ret' value because it
will be used for calculating next data_loc entry.
Link: https://lore.kernel.org/all/168908493827.123124.2175257289106364229.stgit@devnote2/
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 9b960a38835f ("tracing: probeevent: Unify fetch_insn processing common part")
Cc: [email protected]
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Reviewed-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions