git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dmaengine: up-level reference counting to the module level
[safe/jmp/linux-2.6]
/
include
/
net
/
netdma.h
diff --git
a/include/net/netdma.h
b/include/net/netdma.h
index
f28c6e0
..
cbe2737
100644
(file)
--- a/
include/net/netdma.h
+++ b/
include/net/netdma.h
@@
-27,11
+27,11
@@
static inline struct dma_chan *get_softnet_dma(void)
{
struct dma_chan *chan;
+
rcu_read_lock();
chan = rcu_dereference(__get_cpu_var(softnet_data).net_dma);
- if (chan)
- dma_chan_get(chan);
rcu_read_unlock();
+
return chan;
}