Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253229
b: refs/heads/master
c: c5182b8
h: refs/heads/master
i:
  253227: eeccf52
v: v3
  • Loading branch information
Mark Brown authored and Thomas Gleixner committed Jun 3, 2011
1 parent cf8428c commit e70906c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7fbad300a7a6432238f086e3c9a61538a905858
refs/heads/master: c5182b8867e189e14a8df5dbfcba1c73f286e061
6 changes: 6 additions & 0 deletions trunk/kernel/irq/irqdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,12 @@ irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node)
if (!cnt)
return -EINVAL;

if (irq >= 0) {
if (from > irq)
return -EINVAL;
from = irq;
}

mutex_lock(&sparse_irq_lock);

start = bitmap_find_next_zero_area(allocated_irqs, IRQ_BITMAP_BITS,
Expand Down

0 comments on commit e70906c

Please sign in to comment.