aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorYuntao Wang <[email protected]>2022-03-20 15:52:40 +0800
committerDaniel Borkmann <[email protected]>2022-03-21 14:49:28 +0100
commit583669ab3aed29994e50bde6c66b52d44e1bdb73 (patch)
treecd9b01339daf89884dc770e108f82bf0958f8f6a /net/lapb/lapb_timer.c
parentec80906b0fbd7be11e3e960813b977b1ffe5f8fe (diff)
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 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions