Oliver Hartkopp bf8295faed can: raw: check for CAN FD capable netdev in raw_sendmsg()
commit a43608fa77213ad5ac5f75994254b9f65d57cfa0 upstream.

When the socket is CAN FD enabled it can handle CAN FD frame
transmissions.  Add an additional check in raw_sendmsg() as a CAN2.0 CAN
driver (non CAN FD) should never see a CAN FD frame. Due to the commonly
used can_dropped_invalid_skb() function the CAN 2.0 driver would drop
that CAN FD frame anyway - but with this patch the user gets a proper
-EINVAL return code.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-01 09:37:30 +01:00
..
2018-11-04 14:50:51 +01:00
2018-07-24 14:10:42 -07:00
2018-08-27 15:24:33 -07:00
2018-12-01 09:37:27 +01:00
2018-09-24 12:19:27 -07:00
2018-11-04 14:50:51 +01:00
2018-11-23 08:17:04 +01:00
2018-07-24 14:10:42 -07:00
2018-07-24 14:10:42 -07:00
2018-07-24 14:10:43 -07:00
2018-10-18 16:43:06 -07:00