Commit a8f1257
bpf: Fix a erroneous check after snprintf()
snprintf() does not return negative error code on error, it returns the
number of characters which *would* be generated for the given input.
Fix the error handling check.
Fixes: 57539b1 ("bpf: Enable annotating trusted nested pointers")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/393bdebc87b22563c08ace094defa7160eb7a6c0.1694190795.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent 4eb94a7 commit a8f1257
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8501 | 8501 | | |
8502 | 8502 | | |
8503 | 8503 | | |
8504 | | - | |
| 8504 | + | |
8505 | 8505 | | |
8506 | 8506 | | |
8507 | 8507 | | |
| |||
0 commit comments