]> git.baikalelectronics.ru Git - kernel.git/commit
can: add sanity checks
authorOliver Hartkopp <oliver.hartkopp@volkswagen.de>
Sun, 6 Jul 2008 06:38:43 +0000 (23:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Jul 2008 06:38:43 +0000 (23:38 -0700)
commite958b5b0e307691c62da394fd7b4e48c4fa3b60f
tree930ee4b119242ea70d020521f217b42090e42b6e
parent8cb6f4b2fa332b72bfc7d88e1b9ab035697ca368
can: add sanity checks

Even though the CAN netlayer only deals with CAN netdevices, the
netlayer interface to the userspace and to the device layer should
perform some sanity checks.

This patch adds several sanity checks that mainly prevent userspace apps
to send broken content into the system that may be misinterpreted by
some other userspace application.

Signed-off-by: Oliver Hartkopp <oliver.hartkopp@volkswagen.de>
Signed-off-by: Urs Thuermann <urs.thuermann@volkswagen.de>
Acked-by: Andre Naujoks <nautsch@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/af_can.c
net/can/bcm.c
net/can/raw.c