Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207287
b: refs/heads/master
c: 4756227
h: refs/heads/master
i:
  207285: 8f54eed
  207283: e9e2904
  207279: 5339eaa
v: v3
  • Loading branch information
Richard Weinberger authored and Linus Torvalds committed Aug 10, 2010
1 parent 6d59f09 commit 838a418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71abbbf856a0e70ca478782505c800891260ba84
refs/heads/master: 47562277348da533f120acf2b0d4ff82a9444a1f
8 changes: 4 additions & 4 deletions trunk/arch/um/drivers/chan_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ void free_irqs(void)
list_for_each(ele, &list) {
chan = list_entry(ele, struct chan, free_list);

if (chan->input)
if (chan->input && chan->enabled)
free_irq(chan->line->driver->read_irq, chan);
if (chan->output)
if (chan->output && chan->enabled)
free_irq(chan->line->driver->write_irq, chan);
chan->enabled = 0;
}
Expand All @@ -231,9 +231,9 @@ static void close_one_chan(struct chan *chan, int delay_free_irq)
spin_unlock_irqrestore(&irqs_to_free_lock, flags);
}
else {
if (chan->input)
if (chan->input && chan->enabled)
free_irq(chan->line->driver->read_irq, chan);
if (chan->output)
if (chan->output && chan->enabled)
free_irq(chan->line->driver->write_irq, chan);
chan->enabled = 0;
}
Expand Down

0 comments on commit 838a418

Please sign in to comment.