Skip to content

Commit

Permalink
Merge pull request #20 from Semihalf/ena-fbsd-dev
Browse files Browse the repository at this point in the history
fbsd/ena: Add missing lock upon initialization of the interface
  • Loading branch information
gtzalik committed Jun 19, 2017
2 parents e94a2dd + 285426c commit a5c5750
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kernel/fbsd/ena/ena.c
Original file line number Diff line number Diff line change
Expand Up @@ -2276,8 +2276,11 @@ ena_init(void *arg)
{
struct ena_adapter *adapter = (struct ena_adapter *)arg;

if (adapter->up == false)
if (adapter->up == false) {
sx_xlock(&adapter->ioctl_sx);
ena_up(adapter);
sx_unlock(&adapter->ioctl_sx);
}

return;
}
Expand Down

0 comments on commit a5c5750

Please sign in to comment.