aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/tests/code-reading.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2021-10-04 09:16:43 +0200
committerGreg Kroah-Hartman <[email protected]>2021-10-04 09:16:43 +0200
commit8bf7a12c628d1cad59cd8057171dd3ef95f0857a (patch)
tree31bd590f6dfb61e351be19bfcbc636e8b30ecce3 /tools/perf/tests/code-reading.c
parent20ac422c8ef753ae0da0c9312443b03c37cfbb5b (diff)
parent9e1ff307c779ce1f0f810c7ecce3d95bbae40896 (diff)
Merge 5.15-rc4 into char-misc-next
We need the char-misc fixes in here as well. Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/tests/code-reading.c')
-rw-r--r--tools/perf/tests/code-reading.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c
index 9866cddebf23..9b4a765e4b73 100644
--- a/tools/perf/tests/code-reading.c
+++ b/tools/perf/tests/code-reading.c
@@ -229,8 +229,8 @@ static int read_object_code(u64 addr, size_t len, u8 cpumode,
struct thread *thread, struct state *state)
{
struct addr_location al;
- unsigned char buf1[BUFSZ];
- unsigned char buf2[BUFSZ];
+ unsigned char buf1[BUFSZ] = {0};
+ unsigned char buf2[BUFSZ] = {0};
size_t ret_len;
u64 objdump_addr;
const char *objdump_name;