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

Commit 7106a069 authored by Ivan Mikhaylov's avatar Ivan Mikhaylov Committed by David S. Miller
Browse files

net/ibm/emac: add mutex to 'set multicast list'



for preventing race conditions within ioctl calls.

Signed-off-by: default avatarIvan Mikhaylov <ivan@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 01afd972
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -977,7 +977,10 @@ static void emac_set_multicast_list(struct net_device *ndev)
		dev->mcast_pending = 1;
		return;
	}

	mutex_lock(&dev->link_lock);
	__emac_set_multicast_list(dev);
	mutex_unlock(&dev->link_lock);
}

static int emac_set_mac_address(struct net_device *ndev, void *sa)