original_kernel/net/can
Oliver Hartkopp 1758c09476 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 <oliver@hartkopp.net>
Signed-off-by: Urs Thuermann <urs@isnogud.escape.de>
CC: Michael Olbrich <m.olbrich@pengutronix.de>
CC: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-08-14 16:36:57 -07:00
..
Kconfig
Makefile
af_can.c can: Use WARN_ONCE() instead of BUG_ON() for sanity check in receive path 2009-08-14 16:36:57 -07:00
af_can.h
bcm.c net/can: add module alias to can protocol drivers 2009-07-15 11:20:38 -07:00
proc.c
raw.c can: Fix raw_getname() leak 2009-08-09 21:45:32 -07:00