[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120510.122806.257965866445295921.davem@davemloft.net>
Date: Thu, 10 May 2012 12:28:06 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: alex.bluesman.smirnov@...il.com
Cc: eric.dumazet@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH 1/2 net] 6lowpan: add missing pskb_may_pull() check
From: Alexander Smirnov <alex.bluesman.smirnov@...il.com>
Date: Thu, 10 May 2012 18:05:46 +0400
> Using BUG() macro I just want to indicate that something in the bottom
> of the stack went terribly wrong and you must check your code for
> bugs..
Then you should do something like:
if (WARN_ON_ONCE(!pskb_may_pull(...))) {
appropriate_error_handling();
return;
}
instead.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists