X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fcore%2Fuser_dma.c;h=0ad1cd57bc393b126e5cecbbb0f5638b34d73d97;hb=e98ff7f6d8164c5636538998fb7d1e08b1fbbddd;hp=b7c98dbcdb81102ccd50e0d3f354294eae6c6919;hpb=d636b2798732f2cfba48d94aa19b7ba206268a83;p=linux-2.6 diff --git a/net/core/user_dma.c b/net/core/user_dma.c index b7c98dbcdb..0ad1cd57bc 100644 --- a/net/core/user_dma.c +++ b/net/core/user_dma.c @@ -29,6 +29,7 @@ #include #include /* for BUG_TRAP */ #include +#include #define NET_DMA_DEFAULT_COPYBREAK 4096 @@ -57,7 +58,7 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan, if (copy > len) copy = len; cookie = dma_memcpy_to_iovec(chan, to, pinned_list, - skb->data + offset, copy); + skb->data + offset, copy); if (cookie < 0) goto fault; len -= copy; @@ -107,8 +108,8 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan, if (copy > len) copy = len; cookie = dma_skb_copy_datagram_iovec(chan, list, - offset - start, to, copy, - pinned_list); + offset - start, to, copy, + pinned_list); if (cookie < 0) goto fault; len -= copy; @@ -127,5 +128,5 @@ end: } fault: - return -EFAULT; + return -EFAULT; }