+       ns = netdev_priv(dev);
+       xdp_prog = rcu_dereference(ns->xdp.prog);

I'm somewhat confused by this because ns->xdp.prog doesn't appear to be
protected by RCU.

Flagged by Sparse.

Right. Thanks for pointing out Simon. I'll fix it.

Reply via email to