hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
....@@ -551,6 +551,11 @@
551551
552552 /* The bad descriptor currently is in the head of vc list */
553553 vd = vchan_next_desc(&chan->vc);
554
+ if (!vd) {
555
+ dev_err(chan2dev(chan), "BUG: %s, IRQ with no descriptors\n",
556
+ axi_chan_name(chan));
557
+ goto out;
558
+ }
554559 /* Remove the completed descriptor from issued list */
555560 list_del(&vd->node);
556561
....@@ -565,6 +570,7 @@
565570 /* Try to restart the controller */
566571 axi_chan_start_first_queued(chan);
567572
573
+out:
568574 spin_unlock_irqrestore(&chan->vc.lock, flags);
569575 }
570576