Re: [PATCH] wifi: mac80211: mesh: free pending CSA settings on interface stop
Deepanshu Kartikey <[email protected]>
| Newsgroups | org.kernel.vger.linux-wireless,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CADhLXY6Xd9xicEwYvV72KwGo7svRvXCQbvBAgaCv8cGLj31B7A@mail.gmail.com> |
On Mon, Aug 24, 2026 at 9:57 PM Nicolas Escande <[email protected]> wrote: > > Why not really handling it like the beacon data and just remove the if ? > > csa = sdata_dereference(ifmsh->csa, sdata); > RCU_INIT_POINTER(ifmsh->csa, NULL); > kfree_rcu(csa, rcu_head); > > Should do the same: > - RCU_INIT_POINTER() will not take too much time > - kfree_rcu() already does a null check > > > /* free all potentially still buffered group-addressed frames */ > > local->total_ps_buffered -= skb_queue_len(&ifmsh->ps.bc_buf); > > skb_queue_purge(&ifmsh->ps.bc_buf); > > Thanks I will send patch v2. Thanks Deepanshu