]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/net/netdma.h
dmaengine: up-level reference counting to the module level
[mirror_ubuntu-bionic-kernel.git] / include / net / netdma.h
index f28c6e064e8f9d7ba5ebbf9ba5b928b05236d15f..cbe2737f4a613cf9d833244982445cb4fde5e071 100644 (file)
 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;
 }