OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
genirq: Fix memory leak when calling irq_free_hwirqs()
[uclinux-h8/linux.git]
/
kernel
/
irq
/
irqdesc.c
diff --git
a/kernel/irq/irqdesc.c
b/kernel/irq/irqdesc.c
index
7339e42
..
1487a12
100644
(file)
--- a/
kernel/irq/irqdesc.c
+++ b/
kernel/irq/irqdesc.c
@@
-455,9
+455,9
@@
EXPORT_SYMBOL_GPL(irq_alloc_hwirqs);
*/
void irq_free_hwirqs(unsigned int from, int cnt)
{
- int i;
+ int i
, j
;
- for (i = from
; cnt > 0; i++, cnt
--) {
+ for (i = from
, j = cnt; j > 0; i++, j
--) {
irq_set_status_flags(i, _IRQ_NOREQUEST | _IRQ_NOPROBE);
arch_teardown_hwirq(i);
}