summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2023-07-18 16:40:21 -0700
committerAlexei Starovoitov <ast@kernel.org>2023-07-19 10:27:33 -0700
commit6f5a630d7c57cd79b1f526a95e757311e32d41e5 (patch)
treea38fb261189c7792e55d31086e94082507e41fd0 /arch
parent41ee0145a4ea7f6971c02a6dddef20d6cd806270 (diff)
bpf, net: Introduce skb_pointer_if_linear().
Network drivers always call skb_header_pointer() with non-null buffer. Remove !buffer check to prevent accidental misuse of skb_header_pointer(). Introduce skb_pointer_if_linear() instead. Reported-by: Jakub Kicinski <kuba@kernel.org> Acked-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/r/20230718234021.43640-1-alexei.starovoitov@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions