Re: [Patch net-next] tun: avoid calling xdp_rxq_info_unreg() twice

2018-01-22 Thread David Miller
From: Cong Wang Date: Mon, 22 Jan 2018 13:49:27 -0800 > 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_r

[Patch net-next] tun: avoid calling xdp_rxq_info_unreg() twice

2018-01-22 Thread Cong Wang
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: syzbot+1c788d7ce0