diff options
author | Joe Stringer <joe@wand.net.nz> | 2018-10-12 14:50:53 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-13 23:03:08 -0700 |
commit | 67e89ac32828a29adc74e5c9bd59bd70943466f0 (patch) | |
tree | d89350111e7bb1c3073d4e1a67d4a8d55735207a /net/ipv4/tcp_ulp.c | |
parent | 1ae80cf31938c8f77c37a29bbe29e7f1cd492be8 (diff) | |
download | linux-67e89ac32828a29adc74e5c9bd59bd70943466f0.tar.bz2 |
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 <joe@wand.net.nz>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_ulp.c')
0 files changed, 0 insertions, 0 deletions