]> git.ipfire.org Git - thirdparty/linux.git/commit
can: ctucanfd: mark error-active controller status valid
authorAvi Weiss <thnkslprpt@gmail.com>
Thu, 23 Jul 2026 15:55:43 +0000 (18:55 +0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 29 Jul 2026 09:26:44 +0000 (11:26 +0200)
commit4e735cbe3affe88001428fdd9cae8e685ce92f21
treeb72c6dd9cddc905b2c82aa431a85a365941cdbd2
parenta6873910f983096746d1a2e0af94f36b8003e839
can: ctucanfd: mark error-active controller status valid

In the CAN_STATE_ERROR_ACTIVE case, cf->data[1] is set to
CAN_ERR_CRTL_ACTIVE, but cf->can_id is not set with CAN_ERR_CRTL in
that path.

Set CAN_ERR_CRTL so consumers know the controller-status information
in cf->data[1] is valid.

Fixes: 9bd24927e3ee ("can: ctucanfd: handle skb allocation failure")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Link: https://patch.msgid.link/20260723155543.318414-1-thnkslprpt@gmail.com
Cc: stable@kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ctucanfd/ctucanfd_base.c