]> Gentwo Git Trees - linux/.git/commit
can: netlink: add userland error messages
authorVincent Mailhol <mailhol@kernel.org>
Tue, 23 Sep 2025 06:58:45 +0000 (15:58 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 24 Sep 2025 15:09:47 +0000 (17:09 +0200)
commit6742ca18cb4169dc9a7f2860d18e78fcf00c6717
tree90e720e0b10a024b28f7e3067d151aeb389c4b8c
parent7de54546fff11cb0a53f47847d62f7b1a5792d17
can: netlink: add userland error messages

Use NL_SET_ERR_MSG() and NL_SET_ERR_MSG_FMT() to return meaningful
error messages to the userland whenever a -EOPNOTSUPP error is
returned due to a failed validation of the CAN netlink arguments.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
Link: https://patch.msgid.link/20250923-canxl-netlink-prep-v4-20-e720d28f66fe@kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/netlink.c