]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
can: netlink: can_changelink(): add missing error handling to call can_ctrlmode_chang...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 10 Mar 2026 12:48:03 +0000 (13:48 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 19 Mar 2026 13:25:04 +0000 (14:25 +0100)
commitcadf6019231b614ebbd9ec2a16e5997ecbd8d016
tree971f8411da770f9fb1c1cf0e0b76bb98a1f0b1c3
parent8a63baadf08453f66eb582fdb6dd234f72024723
can: netlink: can_changelink(): add missing error handling to call can_ctrlmode_changelink()

In commit e1a5cd9d6665 ("can: netlink: add can_ctrlmode_changelink()") the
CAN Control Mode (IFLA_CAN_CTRLMODE) handling was factored out into the
can_ctrlmode_changelink() function. But the call to
can_ctrlmode_changelink() is missing the error handling.

Add the missing error handling and propagation to the call
can_ctrlmode_changelink().

Cc: stable@vger.kernel.org
Fixes: e1a5cd9d6665 ("can: netlink: add can_ctrlmode_changelink()")
Link: https://patch.msgid.link/20260310-can_ctrlmode_changelink-add-error-handling-v1-1-0daf63d85922@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/netlink.c