diff options
| author | WANG Cong <[email protected]> | 2017-07-17 11:42:55 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-07-17 13:37:56 -0700 |
| commit | df39a9f106d53532443a804352894480ca6ca5fd (patch) | |
| tree | de50c6c9a402363e37350b62dc136a7818265397 /net/lapb/lapb_iface.c | |
| parent | 13c401f33e19c20431d9888a91d9ea82e5133bd9 (diff) | |
bpf: check NULL for sk_to_full_sk() return value
When req->rsk_listener is NULL, sk_to_full_sk() returns
NULL too, so we have to check its return value against
NULL here.
Fixes: 40304b2a1567 ("bpf: BPF support for sock_ops")
Reported-by: David Ahern <[email protected]>
Tested-by: David Ahern <[email protected]>
Cc: Lawrence Brakmo <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions