aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find_bit.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <[email protected]>2022-09-06 17:15:28 +0000
committerMarc Kleine-Budde <[email protected]>2023-02-06 12:57:27 +0000
commitb5a3d0864ee7e43a6ef8a2820f901d60bf4e0703 (patch)
treee466af4ad4741a56f24478f4576a76984100f153 /lib/find_bit.c
parentcan: bittiming: can_sjw_check(): report error via netlink and harmonize error... (diff)
downloadkernel-b5a3d0864ee7e43a6ef8a2820f901d60bf4e0703.tar.gz
kernel-b5a3d0864ee7e43a6ef8a2820f901d60bf4e0703.zip
can: bittiming: can_sjw_check(): check that SJW is not longer than either Phase Buffer Segment
According to "The Configuration of the CAN Bit Timing" [1] the SJW "may not be longer than either Phase Buffer Segment". Check SJW against length of both Phase buffers. In case the SJW is greater, report an error via netlink to user space and bail out. [1] http://web.archive.org/http://www.oertel-halle.de/files/cia99paper.pdf Link: https://lore.kernel.org/all/[email protected] Suggested-by: Vincent Mailhol <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions