]> asedeno.scripts.mit.edu Git - linux.git/commit
xdp: check device pointer before clearing
authorIlya Maximets <i.maximets@samsung.com>
Fri, 7 Jun 2019 17:27:32 +0000 (20:27 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 12 Jun 2019 14:41:47 +0000 (16:41 +0200)
commit01d76b5317003e019ace561a9b775f51aafdfdc4
treec448c473facb63750752105547c5b79576bd9b78
parentf12dd75959b0138f94da8ddcf43f2f3cf277216d
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>
net/xdp/xdp_umem.c