diff options
| author | Yuntao Wang <[email protected]> | 2022-03-20 07:52:40 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-03-21 13:49:28 +0000 |
| commit | 583669ab3aed29994e50bde6c66b52d44e1bdb73 (patch) | |
| tree | cd9b01339daf89884dc770e108f82bf0958f8f6a /tools/lib/bpf/libbpf.c | |
| parent | selftests/bpf/test_lirc_mode2.sh: Exit with proper code (diff) | |
| download | kernel-583669ab3aed29994e50bde6c66b52d44e1bdb73.tar.gz kernel-583669ab3aed29994e50bde6c66b52d44e1bdb73.zip | |
bpf: Simplify check in btf_parse_hdr()
Replace offsetof(hdr_len) + sizeof(hdr_len) with offsetofend(hdr_len) to
simplify the check for correctness of btf_data_size in btf_parse_hdr()
Signed-off-by: Yuntao Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions
