We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812159a commit 9234186Copy full SHA for 9234186
net/sched/act_api.c
@@ -173,12 +173,19 @@ static int offload_action_init(struct flow_offload_action *fl_action,
173
enum offload_act_command cmd,
174
struct netlink_ext_ack *extack)
175
{
176
+ int err;
177
+
178
fl_action->extack = extack;
179
fl_action->command = cmd;
180
fl_action->index = act->tcfa_index;
181
- if (act->ops->offload_act_setup)
- return act->ops->offload_act_setup(act, fl_action, NULL, false);
182
+ if (act->ops->offload_act_setup) {
183
+ spin_lock_bh(&act->tcfa_lock);
184
+ err = act->ops->offload_act_setup(act, fl_action, NULL,
185
+ false);
186
+ spin_unlock_bh(&act->tcfa_lock);
187
+ return err;
188
+ }
189
190
return -EOPNOTSUPP;
191
}
0 commit comments