Vladimir Kondratiev <QCA_vkondrat@xxxxxxxxxxxxxxxx> writes: > To prevent race when connect flow may run in parallel with > the disconnect event. > > Scenario leading to the bug is: while running connect flow on the AP, > STA sends disconnect. log follows. [...] > --- a/drivers/net/wireless/ath/wil6210/txrx.c > +++ b/drivers/net/wireless/ath/wil6210/txrx.c > @@ -160,6 +160,7 @@ static void wil_vring_free(struct wil6210_priv *wil, struct vring *vring, > struct device *dev = wil_to_dev(wil); > size_t sz = vring->size * sizeof(vring->va[0]); > > + WARN_ON(!mutex_is_locked(&wil->mutex)); lockdep_assert_held() is supposed to be used for verifying locking, see ath10k for examples. -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html