summaryrefslogtreecommitdiff
path: root/net/devlink/leftover.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/devlink/leftover.c')
-rw-r--r--net/devlink/leftover.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/devlink/leftover.c b/net/devlink/leftover.c
index d4c896f89905..3569706c49e1 100644
--- a/net/devlink/leftover.c
+++ b/net/devlink/leftover.c
@@ -9681,6 +9681,8 @@ void devl_param_driverinit_value_set(struct devlink *devlink, u32 param_id,
{
struct devlink_param_item *param_item;
+ devl_assert_locked(devlink);
+
param_item = devlink_param_find_by_id(&devlink->params, param_id);
if (WARN_ON(!param_item))
return;