Commit 78cd408
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: ad7c7b2 ("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>1 parent 08e9f2d commit 78cd408
3 files changed
+25
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4972 | 4972 | | |
4973 | 4973 | | |
4974 | 4974 | | |
| 4975 | + | |
4975 | 4976 | | |
4976 | 4977 | | |
4977 | 4978 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9193 | 9193 | | |
9194 | 9194 | | |
9195 | 9195 | | |
9196 | | - | |
9197 | | - | |
9198 | | - | |
9199 | | - | |
9200 | | - | |
9201 | | - | |
9202 | | - | |
9203 | | - | |
9204 | | - | |
9205 | | - | |
9206 | | - | |
9207 | | - | |
| 9196 | + | |
9208 | 9197 | | |
9209 | 9198 | | |
9210 | 9199 | | |
| |||
9216 | 9205 | | |
9217 | 9206 | | |
9218 | 9207 | | |
9219 | | - | |
9220 | 9208 | | |
9221 | 9209 | | |
9222 | 9210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
270 | 293 | | |
271 | 294 | | |
272 | 295 | | |
| |||
0 commit comments