Skip to content

Conversation

henrikbrixandersen
Copy link
Member

@henrikbrixandersen henrikbrixandersen commented Oct 25, 2023

Change the CAN controller driver implementations for the can_remove_rx_filter() API call to be consistent in their validation of the supplied filter_id.

Fixes: #64398

Change the CAN controller driver implementations for the
can_remove_rx_filter() API call to be consistent in their validation of the
supplied filter_id.

Fixes: zephyrproject-rtos#64398

Signed-off-by: Henrik Brix Andersen <[email protected]>
@carlescufi carlescufi merged commit 6c5400d into zephyrproject-rtos:main Oct 26, 2023
@henrikbrixandersen henrikbrixandersen deleted the can_check_filter_id branch October 26, 2023 17:28
mathieuchopstm pushed a commit to mathieuchopstm/zephyr that referenced this pull request Feb 23, 2024
PR zephyrproject-rtos#64399 introduced checks for out-of-bounds filter IDs
in CAN drivers, along with logging of said IDs; however,
the call to LOG_ERR in the native POSIX/Linux driver is
missing the 'filter_id' argument.

This commit adds the missing argument to ensure proper
data is printed when the LOG_ERR call is performed.

Signed-off-by: Mathieu Choplain <[email protected]>
nashif pushed a commit that referenced this pull request Feb 26, 2024
PR #64399 introduced checks for out-of-bounds filter IDs
in CAN drivers, along with logging of said IDs; however,
the call to LOG_ERR in the native POSIX/Linux driver is
missing the 'filter_id' argument.

This commit adds the missing argument to ensure proper
data is printed when the LOG_ERR call is performed.

Signed-off-by: Mathieu Choplain <[email protected]>
zephyrbot pushed a commit that referenced this pull request Feb 26, 2024
PR #64399 introduced checks for out-of-bounds filter IDs
in CAN drivers, along with logging of said IDs; however,
the call to LOG_ERR in the native POSIX/Linux driver is
missing the 'filter_id' argument.

This commit adds the missing argument to ensure proper
data is printed when the LOG_ERR call is performed.

Signed-off-by: Mathieu Choplain <[email protected]>
(cherry picked from commit 6ff47b1)
henrikbrixandersen pushed a commit that referenced this pull request Mar 5, 2024
PR #64399 introduced checks for out-of-bounds filter IDs
in CAN drivers, along with logging of said IDs; however,
the call to LOG_ERR in the native POSIX/Linux driver is
missing the 'filter_id' argument.

This commit adds the missing argument to ensure proper
data is printed when the LOG_ERR call is performed.

Signed-off-by: Mathieu Choplain <[email protected]>
(cherry picked from commit 6ff47b1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CAN area: native port Host native arch port (native_sim) platform: NXP NXP platform: Renesas R-Car Renesas R-Car platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drivers: can: inconsistent checks in can_remove_rx_filter() driver implementations
5 participants