Message ID | 87r454fkqt.fsf@kamboji.qca.qualcomm.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
--- a/drivers/net/wireless/ath/ath10k/txrx.c +++ b/drivers/net/wireless/ath/ath10k/txrx.c @@ -100,13 +100,13 @@ exit: wake_up(&htt->empty_tx_wq); } +/* hold conf_mutex for simple iteration, or conf_mutex+data_lock for + * modifications */ struct ath10k_peer *ath10k_peer_find(struct ath10k *ar, int vdev_id, const u8 *addr) { struct ath10k_peer *peer; - lockdep_assert_held(&ar->data_lock); - list_for_each_entry(peer, &ar->peers, list) { if (peer->vdev_id != vdev_id) continue;