diff --git a/drivers/net/tap.c b/drivers/net/tap.c index dd614c2cd994e89c66eb37625b2afb79adec2258..3ae70c7e6860ca4653ed698fca9bdd2ad8f2c037 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c @@ -1200,7 +1200,7 @@ static int tap_get_user_xdp(struct tap_queue *q, struct xdp_buff *xdp) kfree_skb(skb); err: rcu_read_lock(); - tap = rcu_dereference(q->tap); + tap = rcu_dereference(q->tap); if (tap && tap->count_tx_dropped) tap->count_tx_dropped(tap); rcu_read_unlock();