xdp: unpin xdp umem pages in error path
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Thu, 15 Aug 2019 20:56:35 +0000 (23:56 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 20 Aug 2019 14:39:48 +0000 (16:39 +0200)
commitfb89c39455e4b49881c5a42761bd71f03d3ef888
tree912fa84ac825b9b3db033cf9e0ba47fe7c3273f7
parentd34b044038bfb0e19caa8b019910efc465f41d5f
xdp: unpin xdp umem pages in error path

Fix mem leak caused by missed unpin routine for umem pages.

Fixes: 8aef7340ae9695 ("xsk: introduce xdp_umem_page")
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xdp_umem.c