Unverified Commit d229a934 authored by Karen Xie's avatar Karen Xie Committed by GitHub

Merge pull request #61 from lmunch/fix_user_irq

Fix wrong user irq max
parents 68226d68 715c0374
...@@ -1587,7 +1587,7 @@ static irqreturn_t xdma_isr(int irq, void *dev_id) ...@@ -1587,7 +1587,7 @@ static irqreturn_t xdma_isr(int irq, void *dev_id)
if (user_irq) { if (user_irq) {
int user = 0; int user = 0;
u32 mask = 1; u32 mask = 1;
int max = xdev->h2c_channel_max; int max = xdev->user_max;
for (; user < max && user_irq; user++, mask <<= 1) { for (; user < max && user_irq; user++, mask <<= 1) {
if (user_irq & mask) { if (user_irq & mask) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment