diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2018-10-24 10:27:12 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2018-11-09 17:19:34 +0100 |
commit | a43608fa77213ad5ac5f75994254b9f65d57cfa0 (patch) | |
tree | d38141aba4e346a66443928a5e42a0f7f38c8b71 /.gitignore | |
parent | 85b18b0237ce9986a81a1b9534b5e2ee116f5504 (diff) |
can: raw: check for CAN FD capable netdev in raw_sendmsg()
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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions