Skip to content

Commit

Permalink
Fix wrong break
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuda-Chen committed Oct 6, 2024
1 parent bedec2c commit 7f4b85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtio-snd.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static int virtio_snd_desc_handler(virtio_snd_state_t *vsnd,
desc_idx = desc[3] >> 16; /* vq_desc[desc_cnt].next */

/* Leave the loop if next-flag is not set */
if (!(vq_desc[0].flags & VIRTIO_DESC_F_NEXT))
if (!(vq_desc[i].flags & VIRTIO_DESC_F_NEXT))
break;
}

Expand Down

0 comments on commit 7f4b85a

Please sign in to comment.