drivers: can: mcan: can_mcan_add_rx_filter() unconditionally adds offset for extended CAN-ID filters #44721
Labels
area: CAN
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
The
can_mcan_add_rx_filter()
function unconditionally adds aNUM_STD_FILTER_DATA
offset for extended CAN-ID filters, even if adding a filter returned-ENOSPC
. This prevents correct error reporting when all extended CAN-ID filters are in use.Expected behavior
The driver should correctly report
-ENOSPC
if no more filters are available.Environment (please complete the following information):
Additional context
This was found during implementation of #44687.
The text was updated successfully, but these errors were encountered: