Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e44c39bd authored by David S. Miller's avatar David S. Miller
Browse files

[NET]: Add memory barrrier to netif_poll_enable()



When a driver writer calls this, they generally expect that
all previous stores and modifications they've made will be
visible before netif_poll_enable() executes, so ensure this.

Noticed by Ben H.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bfff6e92
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -906,6 +906,7 @@ static inline void netif_poll_disable(struct net_device *dev)


static inline void netif_poll_enable(struct net_device *dev)
static inline void netif_poll_enable(struct net_device *dev)
{
{
	smp_mb__before_clear_bit();
	clear_bit(__LINK_STATE_RX_SCHED, &dev->state);
	clear_bit(__LINK_STATE_RX_SCHED, &dev->state);
}
}