diff options
| author | Marc Kleine-Budde <mkl@pengutronix.de> | 2023-02-01 17:17:55 +0100 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2023-02-06 13:57:26 +0100 |
| commit | de82d6185b82193e5f798592ed350a3788b78a15 (patch) | |
| tree | 4d4878e483a676b9da526ccd3bd1e05114b74fcd /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | can: bittiming: factor out can_sjw_set_default() and can_sjw_check() (diff) | |
| download | linux-de82d6185b82193e5f798592ed350a3788b78a15.tar.gz linux-de82d6185b82193e5f798592ed350a3788b78a15.zip | |
can: bittiming: can_fixup_bittiming(): report error via netlink and harmonize error value
Check each bit timing parameter first individually against their
limits and report a meaningful error message via netlink to the user
space.
In case of an error, return -EINVAL instead of -ERANGE, this
corresponds better to the actual meaning of the error value.
Link: https://lore.kernel.org/all/20230202110854.2318594-12-mkl@pengutronix.de
Suggested-by: Vincent Mailhol <vincent.mailhol@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
