diff options
author | Ilya Maximets | 2019-06-07 19:27:32 +0200 |
---|---|---|
committer | Daniel Borkmann | 2019-06-12 16:41:47 +0200 |
commit | 01d76b5317003e019ace561a9b775f51aafdfdc4 (patch) | |
tree | c448c473facb63750752105547c5b79576bd9b78 /include/uapi/linux/bpf.h | |
parent | bpf: net: Set sk_bpf_storage back to NULL for cloned sk (diff) | |
download | kernel-qcow2-linux-01d76b5317003e019ace561a9b775f51aafdfdc4.tar.gz kernel-qcow2-linux-01d76b5317003e019ace561a9b775f51aafdfdc4.tar.xz kernel-qcow2-linux-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 <i.maximets@samsung.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/uapi/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions