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 3f93a4f commit f603422Copy full SHA for f603422
drivers/dma/qcom/bam_dma.c
@@ -799,6 +799,9 @@ static u32 process_channel_irqs(struct bam_device *bdev)
799
/* Number of bytes available to read */
800
avail = CIRC_CNT(offset, bchan->head, MAX_DESCRIPTORS + 1);
801
802
+ if (offset < bchan->head)
803
+ avail--;
804
+
805
list_for_each_entry_safe(async_desc, tmp,
806
&bchan->desc_list, desc_node) {
807
/* Not enough data to read */
0 commit comments