diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 9e20cd1906498c92ea69399859313a0ceb69f81e..ac025619df87bf7547b7eea20878f4c20775afe7 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -789,6 +789,7 @@ static void tun_detach_all(struct net_device *dev) sock_put(&tfile->sk); } list_for_each_entry_safe(tfile, tmp, &tun->disabled, next) { + tun_napi_del(tfile); tun_enable_queue(tfile); tun_queue_purge(tfile); xdp_rxq_info_unreg(&tfile->xdp_rxq);