]> Git Repo - linux.git/commit
tun: avoid calling xdp_rxq_info_unreg() twice
authorCong Wang <[email protected]>
Mon, 22 Jan 2018 21:49:27 +0000 (13:49 -0800)
committerDavid S. Miller <[email protected]>
Mon, 22 Jan 2018 21:55:18 +0000 (16:55 -0500)
commitc13da21cdb8085f1d9a53463c88a4d3967fe90fd
treea14a3cf60f7ebaed363046c62a89ad942405ff15
parent208e0b17329cd802088c79f399835d51b9710df8
tun: avoid calling xdp_rxq_info_unreg() twice

Similarly to tx ring, xdp_rxq_info is only registered
when !tfile->detached, so we need to avoid calling
xdp_rxq_info_unreg() twice too. The helper tun_cleanup_tx_ring()
already checks for this properly, so it is correct to put
xdp_rxq_info_unreg() just inside there.

Reported-by: [email protected]
Fixes: 8565d26bcb2f ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net")
Cc: Jason Wang <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/tun.c
This page took 0.041874 seconds and 4 git commands to generate.