Skip to content
Commit adb552c3 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

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: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 2ef5e757
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment