]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: RCU-annotate both dimensions of rtnl_msg_handlers
authorJakub Kicinski <kuba@kernel.org>
Thu, 10 Dec 2020 02:16:08 +0000 (18:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 21:35:59 +0000 (13:35 -0800)
commit451269f0faa7e3060e6a5ecf7098f266eb789618
treed241b5a991d0d9ba6e88eb0e248a97a1f238adfb
parentb5d9387f670f565adf73984b657f469c22f7f468
rtnetlink: RCU-annotate both dimensions of rtnl_msg_handlers

We use rcu_assign_pointer to assign both the table and the entries,
but the entries are not marked as __rcu. This generates sparse
warnings.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c