Skip to content

Commit

Permalink
Merge pull request #213 from flaviojs/fix-missing-unlock-dev_i8254x_h…
Browse files Browse the repository at this point in the history
…andle_txring

Fix missing unlock in dev_i8254x_handle_txring.
  • Loading branch information
grossmj authored Apr 2, 2024
2 parents c5005b0 + 686fefc commit 3c90be6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/dev_i8254x.c
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,10 @@ static int dev_i8254x_handle_txring(struct i8254x_data *d)
for(i=0;i<I8254X_TXRING_PASS_COUNT;i++) {
LVG_LOCK(d);
/* Transmit Enabled ? */
if (!(d->tctl & I8254X_TCTL_EN))
if (!(d->tctl & I8254X_TCTL_EN)) {
LVG_UNLOCK(d);
break;
}

res = dev_i8254x_handle_txring_single(d);
LVG_UNLOCK(d);
Expand Down

0 comments on commit 3c90be6

Please sign in to comment.