mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
net: add missing instance lock to dev_set_promiscuity
Accidentally spotted while trying to understand what else needs
to be renamed to netif_ prefix. Most of the calls to dev_set_promiscuity
are adjacent to dev_set_allmulti or dev_disable_lro so it should
be safe to add the lock. Note that new netif_set_promiscuity is
currently unused, the locked paths call __dev_set_promiscuity directly.
Fixes: ad7c7b2172 ("net: hold netdev instance lock during sysfs operations")
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250506011919.2882313-1-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
08e9f2d584
commit
78cd408356
@@ -4972,6 +4972,7 @@ static inline void __dev_mc_unsync(struct net_device *dev,
|
||||
|
||||
/* Functions used for secondary unicast and multicast support */
|
||||
void dev_set_rx_mode(struct net_device *dev);
|
||||
int netif_set_promiscuity(struct net_device *dev, int inc);
|
||||
int dev_set_promiscuity(struct net_device *dev, int inc);
|
||||
int netif_set_allmulti(struct net_device *dev, int inc, bool notify);
|
||||
int dev_set_allmulti(struct net_device *dev, int inc);
|
||||
|
||||
Reference in New Issue
Block a user