Skip to content

drivers: can: mcan: sjw not initialized when CAN_FD_MODE is enabled #35737

@str4t0m

Description

@str4t0m

Describe the bug
The mcan driver does not initialize the timing.sjw variable in CAN_FD_MODE configuration.
This causes undefined behavior and might trigger a assert that checks the valid range of this parameter.

Expected behavior
The synchronization jump width should be initialized with the parameter configured.

Impact
Undefined behavior might lead to synchronization problems.

Metadata

Metadata

Labels

area: CANbugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions