mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
net/ibm/emac: add mutex to 'set multicast list'
for preventing race conditions within ioctl calls. Signed-off-by: Ivan Mikhaylov <ivan@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
01afd972a7
commit
7106a069f4
1 changed files with 3 additions and 0 deletions
|
@ -977,7 +977,10 @@ static void emac_set_multicast_list(struct net_device *ndev)
|
||||||
dev->mcast_pending = 1;
|
dev->mcast_pending = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutex_lock(&dev->link_lock);
|
||||||
__emac_set_multicast_list(dev);
|
__emac_set_multicast_list(dev);
|
||||||
|
mutex_unlock(&dev->link_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int emac_set_mac_address(struct net_device *ndev, void *sa)
|
static int emac_set_mac_address(struct net_device *ndev, void *sa)
|
||||||
|
|
Loading…
Add table
Reference in a new issue