xdp: hold device for umem regardless of zero-copy mode
authorIlya Maximets <i.maximets@samsung.com>
Fri, 28 Jun 2019 08:04:06 +0000 (11:04 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Jul 2019 13:10:55 +0000 (15:10 +0200)
commit162c820ed8965bf94d2685f97388aea5aee9e258
treed2dede2752497f4e5f0780dcb5a69a1e51825553
parent11aca65ec4db09527d3e9b6b41a0615b7da4386b
xdp: hold device for umem regardless of zero-copy mode

Device pointer stored in umem regardless of zero-copy mode,
so we heed to hold the device in all cases.

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