1
0
Fork 0
forked from nuttx/nuttx-update

arch/risc-v/espressif: add missing spinlock to wlan_recvframe

This commit is contained in:
Filipe Cavalcanti 2024-12-17 13:50:57 -03:00 committed by Alan C. Assis
parent a7869bb28b
commit 97c0b43d86

View file

@ -321,8 +321,11 @@ static inline void wlan_cache_txpkt_tail(struct wlan_priv_s *priv)
static struct iob_s *wlan_recvframe(struct wlan_priv_s *priv)
{
struct iob_s *iob;
irqstate_t flags;
flags = spin_lock_irqsave(&priv->lock);
iob = iob_remove_queue(&priv->rxb);
spin_unlock_irqrestore(&priv->lock, flags);
return iob;
}