]> git.itanic.dy.fi Git - linux-stable/commit
can: dev: fix missing CAN XL support in can_put_echo_skb()
authorOliver Hartkopp <socketcan@hartkopp.net>
Sat, 6 May 2023 18:45:15 +0000 (20:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:46 +0000 (17:32 +0100)
commite90cefcffd731b4d06f1e4ac9499d9023ede6b29
tree70fd676f8c03c75b6bf458893f18358262d93136
parentc9abef1e07ff38f7ea3dfb62f141e111c54aa7e2
can: dev: fix missing CAN XL support in can_put_echo_skb()

[ Upstream commit 6bffdc38f9935bae49f980448f3f6be2dada0564 ]

can_put_echo_skb() checks for the enabled IFF_ECHO flag and the
correct ETH_P type of the given skbuff. When implementing the CAN XL
support the new check for ETH_P_CANXL has been forgotten.

Fixes: fb08cba12b52 ("can: canxl: update CAN infrastructure for CAN XL frames")
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/all/20230506184515.39241-1-socketcan@hartkopp.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/dev/skb.c