Skip to content

Commit 30d1ccd

Browse files
committed
Apply suggestion
1 parent bdbf7d1 commit 30d1ccd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

virtio-snd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,8 +1451,10 @@ static bool virtio_snd_reg_write(virtio_snd_state_t *vsnd,
14511451
pthread_cond_signal(&virtio_snd_tx_cond);
14521452
break;
14531453
case VSND_QUEUE_RX:
1454+
pthread_mutex_lock(&virtio_snd_rx_mutex);
14541455
rx_ev_notify++;
14551456
pthread_cond_signal(&virtio_snd_rx_cond);
1457+
pthread_mutex_unlock(&virtio_snd_rx_mutex);
14561458
break;
14571459
default:
14581460
fprintf(stderr, "value %d not supported\n", value);

0 commit comments

Comments
 (0)