mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
can: bittiming: can_validate_bitrate(): report error via netlink
Report an error to user space via netlink if the requested bit rate is not supported by the device. Link: https://lore.kernel.org/all/20230202110854.2318594-18-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
06742086a3
commit
6d7934719f
@ -124,6 +124,9 @@ can_validate_bitrate(const struct net_device *dev, const struct can_bittiming *b
|
||||
return 0;
|
||||
}
|
||||
|
||||
NL_SET_ERR_MSG_FMT(extack, "bitrate %u bps not supported",
|
||||
bt->brp);
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user