Commit 08ac0d3
bpf: Fix unsigned 'datasec_id' compared with zero in check_pseudo_btf_id
The unsigned variable datasec_id is assigned a return value from the call
to check_pseudo_btf_id(), which may return negative error code.
Fixes coccicheck warning:
./kernel/bpf/verifier.c:9616:5-15: WARNING: Unsigned expression compared with zero: datasec_id > 0
Reported-by: Tosk Robot <[email protected]>
Signed-off-by: Kaixu Xia <[email protected]>1 parent b883674 commit 08ac0d3
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9585 | 9585 | | |
9586 | 9586 | | |
9587 | 9587 | | |
9588 | | - | |
| 9588 | + | |
| 9589 | + | |
9589 | 9590 | | |
9590 | 9591 | | |
9591 | 9592 | | |
| |||
0 commit comments