Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116294
b: refs/heads/master
c: 6b31419
h: refs/heads/master
v: v3
  • Loading branch information
Timur Tabi authored and Dan Williams committed Sep 19, 2008
1 parent e40aef2 commit 7ce6eb5
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 89f72a0633d1d4f28c4c5c8831ec814523d7671a
refs/heads/master: 6b3141962dc82cfe1c30afdf91d564b309859cbe
5 changes: 5 additions & 0 deletions trunk/drivers/dma/dmatest.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ static enum dma_state_client dmatest_add_channel(struct dma_chan *chan)
struct dmatest_thread *thread;
unsigned int i;

/* Have we already been told about this channel? */
list_for_each_entry(dtc, &dmatest_channels, node)
if (dtc->chan == chan)
return DMA_DUP;

dtc = kmalloc(sizeof(struct dmatest_chan), GFP_ATOMIC);
if (!dtc) {
pr_warning("dmatest: No memory for %s\n", chan->dev.bus_id);
Expand Down

0 comments on commit 7ce6eb5

Please sign in to comment.