diff options
| author | Ilya Maximets <[email protected]> | 2019-06-07 17:27:32 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-06-12 14:41:47 +0000 |
| commit | 01d76b5317003e019ace561a9b775f51aafdfdc4 (patch) | |
| tree | c448c473facb63750752105547c5b79576bd9b78 /tools/testing/selftests/bpf/verifier/div_overflow.c | |
| parent | bpf: net: Set sk_bpf_storage back to NULL for cloned sk (diff) | |
| download | kernel-01d76b5317003e019ace561a9b775f51aafdfdc4.tar.gz kernel-01d76b5317003e019ace561a9b775f51aafdfdc4.zip | |
xdp: check device pointer before clearing
We should not call 'ndo_bpf()' or 'dev_put()' with NULL argument.
Fixes: c9b47cc1fabc ("xsk: fix bug when trying to use both copy and zero-copy on one queue id")
Signed-off-by: Ilya Maximets <[email protected]>
Acked-by: Jonathan Lemon <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/verifier/div_overflow.c')
0 files changed, 0 insertions, 0 deletions
