aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/bpf/verifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index ed12e385fb75..b074b23000d6 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -283,7 +283,7 @@ static const char *const bpf_class_string[] = {
283 [BPF_ALU64] = "alu64", 283 [BPF_ALU64] = "alu64",
284}; 284};
285 285
286static const char *const bpf_alu_string[] = { 286static const char *const bpf_alu_string[16] = {
287 [BPF_ADD >> 4] = "+=", 287 [BPF_ADD >> 4] = "+=",
288 [BPF_SUB >> 4] = "-=", 288 [BPF_SUB >> 4] = "-=",
289 [BPF_MUL >> 4] = "*=", 289 [BPF_MUL >> 4] = "*=",
@@ -307,7 +307,7 @@ static const char *const bpf_ldst_string[] = {
307 [BPF_DW >> 3] = "u64", 307 [BPF_DW >> 3] = "u64",
308}; 308};
309 309
310static const char *const bpf_jmp_string[] = { 310static const char *const bpf_jmp_string[16] = {
311 [BPF_JA >> 4] = "jmp", 311 [BPF_JA >> 4] = "jmp",
312 [BPF_JEQ >> 4] = "==", 312 [BPF_JEQ >> 4] = "==",
313 [BPF_JGT >> 4] = ">", 313 [BPF_JGT >> 4] = ">",