]> git.baikalelectronics.ru Git - kernel.git/commit
net: devlink: add RNLT lock assertion to devlink_compat_switch_id_get()
authorJiri Pirko <jiri@nvidia.com>
Thu, 25 Aug 2022 11:29:23 +0000 (13:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 27 Aug 2022 00:14:15 +0000 (17:14 -0700)
commit5bccb0b15534c1f1c143b5256472d0c6dcb5b54a
tree33bee99ef7d0a8cde76e8d689e11bcfe60956ac4
parent0cc3886fd34a91012c74a8eb5784e2f97633ce7e
net: devlink: add RNLT lock assertion to devlink_compat_switch_id_get()

Similar to devlink_compat_phys_port_name_get(), make sure that
devlink_compat_switch_id_get() is called with RTNL lock held. Comment
already says so, so put this in code as well.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20220825112923.1359194-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c