aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJoe Stringer <[email protected]>2018-10-12 21:50:53 +0000
committerAlexei Starovoitov <[email protected]>2018-10-14 06:03:08 +0000
commit67e89ac32828a29adc74e5c9bd59bd70943466f0 (patch)
treed89350111e7bb1c3073d4e1a67d4a8d55735207a /net/unix/af_unix.c
parentbpf: wait for running BPF programs when updating map-in-map (diff)
downloadkernel-67e89ac32828a29adc74e5c9bd59bd70943466f0.tar.gz
kernel-67e89ac32828a29adc74e5c9bd59bd70943466f0.zip
bpf: Fix dev pointer dereference from sk_skb
Dan Carpenter reports: The patch 6acc9b432e67: "bpf: Add helper to retrieve socket in BPF" from Oct 2, 2018, leads to the following Smatch complaint: net/core/filter.c:4893 bpf_sk_lookup() error: we previously assumed 'skb->dev' could be null (see line 4885) Fix this issue by checking skb->dev before using it. Signed-off-by: Joe Stringer <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions