Skip to contentSkip to conversation

bpf: Fix typos in verifier.c comments

PATCH In review Zhan Xusheng 2 participants 2 messages Mar 9

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: Fix typos in verifier.c comments

Found several minor typos in comments within the BPF verifier, and fixed them.

---
 kernel/bpf/verifier.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/bpf/verifier.c +2 -2
index 159b25f8269d..ebeba70dcee5 100644
@@ -7081,7 +7081,7 @@ static void coerce_reg_to_size_sx(struct bpf_reg_state *reg, int size)
 	if (top_smax_value != top_smin_value)
 		goto out;
 
-	/* find the s64_min and s64_min after sign extension */
+	/* find the s64_max and s64_min after sign extension */
 	if (size == 1) {
 		init_s64_max = (s8)reg->smax_value;
 		init_s64_min = (s8)reg->smin_value;
@@ -7150,7 +7150,7 @@ static void coerce_subreg_to_size_sx(struct bpf_reg_state *reg, int size)
 	if (top_smax_value != top_smin_value)
 		goto out;
 
-	/* find the s32_min and s32_min after sign extension */
+	/* find the s32_max and s32_min after sign extension */
 	if (size == 1) {
 		init_s32_max = (s8)reg->s32_max_value;
 		init_s32_min = (s8)reg->s32_min_value;
Signature · 1 line
2.43.0