From: Oliver Hartkopp Date: Thu, 13 Aug 2009 22:54:25 +0000 (+0000) Subject: can: Use WARN_ONCE() instead of BUG_ON() for sanity check in receive path X-Git-Tag: v2.6.32-rc1~703^2~351 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1758c0947605211ef953cc91d6bbdf847a21b822;p=pandora-kernel.git can: Use WARN_ONCE() instead of BUG_ON() for sanity check in receive path To ensure a proper handling of CAN frames transported in skbuffs some checks need to be performed at receive time. As stated by Michael Olbrich and Luotao Fu BUG_ON() might be to restrictive. This is right as we can just drop the non conform skbuff and the Kernel can continue working. This patch replaces the BUG_ON() with a WARN_ONCE() so that the system remains healthy but we made the problem visible (once). Signed-off-by: Oliver Hartkopp Signed-off-by: Urs Thuermann CC: Michael Olbrich CC: Luotao Fu Signed-off-by: David S. Miller --- Reading git-diff-tree failed