]> git.baikalelectronics.ru Git - kernel.git/commit
team: call RCU read lock when walking the port_list
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 9 Oct 2019 12:18:28 +0000 (20:18 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 Oct 2019 04:13:59 +0000 (21:13 -0700)
commit06ca651a05aebc4e5405f02188be64514bc045b6
treea79fe3552d3c8d031ccb9fa6dcfddf913d656faf
parent2dc718bf8e293eb4732a6293edf9e4444bb113c2
team: call RCU read lock when walking the port_list

Before reading the team port list, we need to acquire the RCU read lock.
Also change list_for_each_entry() to list_for_each_entry_rcu().

v2:
repost the patch to net-next and remove fixes flag as this is a cosmetic
change.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/team/team.c