linux-stable/net/can
Oliver Hartkopp faeb18b64b can: add missing socket check in can/raw release
commit 10022a6c66 upstream.

v2: added space after 'if' according code style.

We can get here with a NULL socket argument passed from userspace,
so we need to handle it accordingly.

Thanks to Dave Jones pointing at this issue in net/can/bcm.c

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2012-03-14 10:57:20 -04:00
..
af_can.c can: deny filterlist access on non-CAN interfaces 2010-02-02 07:21:34 -08:00
af_can.h can: Speed up CAN frame receiption by using ml_priv 2010-01-03 21:31:03 -08:00
bcm.c can: Add missing socket check in can/bcm release. 2012-03-14 10:57:20 -04:00
Kconfig [CAN]: Add virtual CAN netdevice driver 2008-01-28 14:54:12 -08:00
Makefile [CAN]: Add broadcast manager (bcm) protocol 2008-01-28 14:54:11 -08:00
proc.c can: Speed up CAN frame receiption by using ml_priv 2010-01-03 21:31:03 -08:00
raw.c can: add missing socket check in can/raw release 2012-03-14 10:57:20 -04:00