]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: add missing instance lock to dev_set_promiscuity
authorStanislav Fomichev <sdf@fomichev.me>
Tue, 6 May 2025 01:19:19 +0000 (18:19 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 May 2025 01:52:39 +0000 (18:52 -0700)
commit78cd408356fe3edbac66598772fd347bf3e32c1f
tree3a73ff41c43c7468b12ab735342ea4403c0494db
parent08e9f2d584c4732180edee4cb2dbfa7586d7d5a3
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: ad7c7b2172c3 ("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>
include/linux/netdevice.h
net/core/dev.c
net/core/dev_api.c