X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=net%2Fcore%2Fuser_dma.c;h=164b090d5ac3d5fed2b1d84753d11101f8a790f0;hb=8be1a6d6c77ab4532e4476fdb8177030ef48b52c;hp=8c6b706963ff01b02c87a54f2c70103e7f7f8f29;hpb=7f9dce38378f0a4a298e885553d6bb7121376376;p=linux-2.6 diff --git a/net/core/user_dma.c b/net/core/user_dma.c index 8c6b706963..164b090d5a 100644 --- a/net/core/user_dma.c +++ b/net/core/user_dma.c @@ -27,7 +27,6 @@ #include #include -#include /* for BUG_TRAP */ #include #include @@ -72,7 +71,7 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan, for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { int end; - BUG_TRAP(start <= offset + len); + WARN_ON(start > offset + len); end = start + skb_shinfo(skb)->frags[i].size; copy = end - offset; @@ -101,7 +100,7 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan, for (; list; list = list->next) { int end; - BUG_TRAP(start <= offset + len); + WARN_ON(start > offset + len); end = start + list->len; copy = end - offset;