diff options
Diffstat (limited to 'net/core/user_dma.c')
-rw-r--r-- | net/core/user_dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/user_dma.c b/net/core/user_dma.c index 8c6b706963f..164b090d5ac 100644 --- a/net/core/user_dma.c +++ b/net/core/user_dma.c | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | #include <linux/dmaengine.h> | 28 | #include <linux/dmaengine.h> |
29 | #include <linux/socket.h> | 29 | #include <linux/socket.h> |
30 | #include <linux/rtnetlink.h> /* for BUG_TRAP */ | ||
31 | #include <net/tcp.h> | 30 | #include <net/tcp.h> |
32 | #include <net/netdma.h> | 31 | #include <net/netdma.h> |
33 | 32 | ||
@@ -72,7 +71,7 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan, | |||
72 | for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { | 71 | for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { |
73 | int end; | 72 | int end; |
74 | 73 | ||
75 | BUG_TRAP(start <= offset + len); | 74 | WARN_ON(start > offset + len); |
76 | 75 | ||
77 | end = start + skb_shinfo(skb)->frags[i].size; | 76 | end = start + skb_shinfo(skb)->frags[i].size; |
78 | copy = end - offset; | 77 | copy = end - offset; |
@@ -101,7 +100,7 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan, | |||
101 | for (; list; list = list->next) { | 100 | for (; list; list = list->next) { |
102 | int end; | 101 | int end; |
103 | 102 | ||
104 | BUG_TRAP(start <= offset + len); | 103 | WARN_ON(start > offset + len); |
105 | 104 | ||
106 | end = start + list->len; | 105 | end = start + list->len; |
107 | copy = end - offset; | 106 | copy = end - offset; |