Commit 715c0374 authored by Lars Munch's avatar Lars Munch

Fix wrong user irq max

User irq max was incorrectly set to h2c_channel_max
parent d56eeaf0
...@@ -1588,7 +1588,7 @@ static irqreturn_t xdma_isr(int irq, void *dev_id) ...@@ -1588,7 +1588,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