diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-07-30 23:51:01 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2018-01-05 11:12:08 +0100 |
commit | adb552c31915415fdb374172085f174f459727ea (patch) | |
tree | 58a71eb129ccc4102fd236b0ef469e5f8f222359 /net/can/af_can.c | |
parent | 2ef5e75706d87065bc382bf85f1503008a5a1e7a (diff) | |
download | op-kernel-dev-adb552c31915415fdb374172085f174f459727ea.zip op-kernel-dev-adb552c31915415fdb374172085f174f459727ea.tar.gz |
can: raw: raw_bind(): bail out if can_family is not AF_CAN
Until now CAN raw's bind() doesn't check if the can_familiy in the
struct sockaddr_can is set to AF_CAN. This patch adds the missing check.
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/can/af_can.c')
0 files changed, 0 insertions, 0 deletions