Skip to content

Commit c8c0879

Browse files
martinjaegercarlescufi
authored andcommitted
drivers: can: mcan: Fix flag overflow for some MCUs
The number of extended filters can be up to 15 for MCUs like the NXP LPC55Sxx series, so the flags don't fit into uint8_t. Fixes #53417 Signed-off-by: Martin Jäger <[email protected]>
1 parent cff71c8 commit c8c0879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/can/can_mcan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ struct can_mcan_data {
180180
void *state_change_cb_data;
181181
uint32_t std_filt_rtr;
182182
uint32_t std_filt_rtr_mask;
183-
uint8_t ext_filt_rtr;
184-
uint8_t ext_filt_rtr_mask;
183+
uint16_t ext_filt_rtr;
184+
uint16_t ext_filt_rtr_mask;
185185
struct can_mcan_mm mm;
186186
bool started;
187187
void *custom;

0 commit comments

Comments
 (0)