Commit 8f480c0e4e120911a673ed7385359bf76ae01963

Authored by Arjan van de Ven
Committed by David S. Miller
1 parent 1d71da164d

net: make skb_truesize_bug() call WARN()

The truesize message check is important enough to make it print "BUG"
to the user console... lets also make it important enough to spit a
backtrace/module list etc so that kerneloops.org can track them.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -149,7 +149,7 @@
149 149  
150 150 void skb_truesize_bug(struct sk_buff *skb)
151 151 {
152   - printk(KERN_ERR "SKB BUG: Invalid truesize (%u) "
  152 + WARN(net_ratelimit(), KERN_ERR "SKB BUG: Invalid truesize (%u) "
153 153 "len=%u, sizeof(sk_buff)=%Zd\n",
154 154 skb->truesize, skb->len, sizeof(struct sk_buff));
155 155 }