]> Gentwo Git Trees - linux/.git/commit
can: esd: acc_start_xmit(): use can_dev_dropped_skb() instead of can_dropped_invalid_...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 17 Oct 2025 14:28:49 +0000 (16:28 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 20 Oct 2025 15:17:59 +0000 (17:17 +0200)
commit0bee15a5caf36fe513fdeee07fd4f0331e61c064
treebf9e866b5da416a1df27984d96fc9028bffaa350
parent3a20c444cd123e820e10ae22eeaf00e189315aa1
can: esd: acc_start_xmit(): use can_dev_dropped_skb() instead of can_dropped_invalid_skb()

In addition to can_dropped_invalid_skb(), the helper function
can_dev_dropped_skb() checks whether the device is in listen-only mode and
discards the skb accordingly.

Replace can_dropped_invalid_skb() by can_dev_dropped_skb() to also drop
skbs in for listen-only mode.

Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Closes: https://lore.kernel.org/all/20251017-bizarre-enchanted-quokka-f3c704-mkl@pengutronix.de/
Fixes: 9721866f07e1 ("can: esd: add support for esd GmbH PCIe/402 CAN interface family")
Link: https://patch.msgid.link/20251017-fix-skb-drop-check-v1-2-556665793fa4@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/esd/esdacc.c