diff options
Diffstat (limited to 'include/net/netdma.h')
-rw-r--r-- | include/net/netdma.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/netdma.h b/include/net/netdma.h index f28c6e064e8f..cbe2737f4a61 100644 --- a/include/net/netdma.h +++ b/include/net/netdma.h | |||
@@ -27,11 +27,11 @@ | |||
27 | static inline struct dma_chan *get_softnet_dma(void) | 27 | static inline struct dma_chan *get_softnet_dma(void) |
28 | { | 28 | { |
29 | struct dma_chan *chan; | 29 | struct dma_chan *chan; |
30 | |||
30 | rcu_read_lock(); | 31 | rcu_read_lock(); |
31 | chan = rcu_dereference(__get_cpu_var(softnet_data).net_dma); | 32 | chan = rcu_dereference(__get_cpu_var(softnet_data).net_dma); |
32 | if (chan) | ||
33 | dma_chan_get(chan); | ||
34 | rcu_read_unlock(); | 33 | rcu_read_unlock(); |
34 | |||
35 | return chan; | 35 | return chan; |
36 | } | 36 | } |
37 | 37 | ||